Commit df613b8db1ba3b7f2fd79fafa36df9c4f4680ebf
1 parent
8a6f543e
--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")){ |
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 | 33 | return direccio+nomarxiu+"/"; |
34 | 34 | } |
35 | 35 | } | ... | ... |