Commit 90111b81116874aade2269a692e04bcf282d3695
1 parent
7e20035b
HTMLParser versió per tots Apaches
Showing
1 changed file
with
1 additions
and
1 deletions
src/com/upc/pbe/upcnews/HTMLParser.java
... | ... | @@ -19,7 +19,7 @@ public class HTMLParser { |
19 | 19 | //Si hi ha un directori, tallem l'string per obtenir-ne el nom. |
20 | 20 | for(int i = 0; i < split.length; i++){ |
21 | 21 | if(split[i].contains("href") && split[i].contains("/\"")){ |
22 | - directoris.add(split[i].substring((split[i].indexOf("href="))+2, (split[i].indexOf("/\"")))); | |
22 | + directoris.add(split[i].substring((split[i].indexOf("href="))+4, (split[i].indexOf("/\"")))); | |
23 | 23 | } |
24 | 24 | } |
25 | 25 | return directoris; | ... | ... |