Commit 235ef0469ba38ab97c8a92824fa52273e309ee2f
1 parent
704a554a
--no commit message
Showing
1 changed file
with
2 additions
and
2 deletions
src/com/upc/pbe/upcnews/HTMLParser.java
@@ -25,12 +25,12 @@ public class HTMLParser { | @@ -25,12 +25,12 @@ public class HTMLParser { | ||
25 | return directoris; | 25 | return directoris; |
26 | } | 26 | } |
27 | 27 | ||
28 | - public String findvideo(String name, String code){ | 28 | + public String findvideo(String name, String code, String direccio){ |
29 | name = name+".m3u8"; | 29 | name = name+".m3u8"; |
30 | String[] split = code.split("\n"); | 30 | String[] split = code.split("\n"); |
31 | for(int i = 0; i< split.length; i++){ | 31 | for(int i = 0; i< split.length; i++){ |
32 | if(split[i].contains(name)){ | 32 | if(split[i].contains(name)){ |
33 | - | 33 | + return direccio+name+"/"; |
34 | } | 34 | } |
35 | } | 35 | } |
36 | return null; | 36 | return null; |