Commit 213f6f9a8b37cf1bad8c32addee81875a949c777
1 parent
cfc7116b
--no commit message
Showing
1 changed file
with
1 additions
and
1 deletions
src/com/upc/pbe/upcnews/HTMLParser.java
... | ... | @@ -29,7 +29,7 @@ public class HTMLParser { |
29 | 29 | String[] split = code.split("\n"); |
30 | 30 | for(int i = 0; i < split.length; i++){ |
31 | 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))-1); | |
33 | 33 | return direccio+nomarxiu+"/"; |
34 | 34 | } |
35 | 35 | } | ... | ... |