diff --git a/src/com/upc/pbe/upcnews/HTMLParser.java b/src/com/upc/pbe/upcnews/HTMLParser.java
index 43bb7ef..9a557e1 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)));
+ String nomarxiu = split[i].substring((split[i].indexOf("href="))+6, (split[i].indexOf('>',(split[i].indexOf("href="))+6))-1);
return direccio+nomarxiu+"/";
}
}