From 072c72e8080dd56725d102c87561037ccbbe2b86 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Wed, 28 Nov 2012 14:54:04 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/HTMLParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/upc/pbe/upcnews/HTMLParser.java b/src/com/upc/pbe/upcnews/HTMLParser.java index 9a557e1..85c9c5f 100644 --- a/src/com/upc/pbe/upcnews/HTMLParser.java +++ b/src/com/upc/pbe/upcnews/HTMLParser.java @@ -29,7 +29,7 @@ public class HTMLParser { String[] split = code.split("\n"); for(int i = 0; i < split.length; i++){ if(split[i].contains(".m3u8") && !split[i].contains("._")){ - String nomarxiu = split[i].substring((split[i].indexOf("href="))+6, (split[i].indexOf('>',(split[i].indexOf("href="))+6))-1); + String nomarxiu = split[i].substring((split[i].indexOf("href="))+6, (split[i].indexOf('"',(split[i].indexOf("href="))+6))); return direccio+nomarxiu+"/"; } } -- libgit2 0.22.2