Commit 213f6f9a8b37cf1bad8c32addee81875a949c777

Authored by Imanol-Mikel Barba Sabariego
1 parent cfc7116b

--no commit message

src/com/upc/pbe/upcnews/HTMLParser.java
@@ -29,7 +29,7 @@ public class HTMLParser { @@ -29,7 +29,7 @@ public class HTMLParser {
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") && !split[i].contains("._")){ 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 return direccio+nomarxiu+"/"; 33 return direccio+nomarxiu+"/";
34 } 34 }
35 } 35 }