Commit df613b8db1ba3b7f2fd79fafa36df9c4f4680ebf

Authored by Imanol-Mikel Barba Sabariego
1 parent 8a6f543e

--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")){ 31 if(split[i].contains(".m3u8")){
32 - String nomarxiu = split[i].substring((split[i].indexOf("href="))+6, (split[i].indexOf("/\""))); 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 }
35 } 35 }