Commit 072c72e8080dd56725d102c87561037ccbbe2b86

Authored by Imanol-Mikel Barba Sabariego
1 parent 213f6f9a

--no commit message

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))-1);
  32 + String nomarxiu = split[i].substring((split[i].indexOf("href="))+6, (split[i].indexOf('"',(split[i].indexOf("href="))+6)));
33 33 return direccio+nomarxiu+"/";
34 34 }
35 35 }
... ...