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));