From 499ae9f80ed2b1a9f373acc405b87c50705cc828 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Wed, 21 Nov 2012 19:36:50 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/HTMLParser.java | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/com/upc/pbe/upcnews/HTMLParser.java b/src/com/upc/pbe/upcnews/HTMLParser.java index 195d4a4..8dd255f 100644 --- a/src/com/upc/pbe/upcnews/HTMLParser.java +++ b/src/com/upc/pbe/upcnews/HTMLParser.java @@ -15,6 +15,8 @@ public class HTMLParser { public ArrayList parse(){ //Separem el codi en linies String[] split = code.split("\n"); + //Mirem a cada linia si conté un href, i hi haurà un directori si conté el conjunt /" + //Si hi ha un directori, tallem l'string per obtenir-ne el nom. for(int i = 0; i < split.length; i++){ if(split[i].contains("href") && split[i].contains("/\"")){ directoris.add(split[i].substring(split[i].indexOf('>', 5), split[i].indexOf('<', 5)-1)); -- libgit2 0.22.2