Commit 3ea2c6483f6019fcf9efb139faedee19aa38df4c
1 parent
df613b8d
--no commit message
Showing
1 changed file
with
1 additions
and
1 deletions
src/com/upc/pbe/upcnews/HTMLParser.java
@@ -28,7 +28,7 @@ public class HTMLParser { | @@ -28,7 +28,7 @@ public class HTMLParser { | ||
28 | public String findvideo(String name, String code, String direccio){ | 28 | public String findvideo(String name, String code, String direccio){ |
29 | String[] split = code.split("\n"); | 29 | String[] split = code.split("\n"); |
30 | for(int i = 0; i < split.length; i++){ | 30 | for(int i = 0; i < split.length; i++){ |
31 | - if(split[i].contains(".m3u8")){ | 31 | + if(split[i].contains(".m3u8") && !split[i].contains("._")){ |
32 | String nomarxiu = split[i].substring((split[i].indexOf("href="))+6, (split[i].indexOf('>',(split[i].indexOf("href="))+6))); | 32 | String nomarxiu = split[i].substring((split[i].indexOf("href="))+6, (split[i].indexOf('>',(split[i].indexOf("href="))+6))); |
33 | return direccio+nomarxiu+"/"; | 33 | return direccio+nomarxiu+"/"; |
34 | } | 34 | } |