/xml/util/getpageinfo_p.java: fixed problem with empty tags and added recognition of compound tags e.g. "DER SPIEGEL"

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4823 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 17 years ago
parent aa29a8c165
commit 4f9b8a6ef8

@ -100,10 +100,19 @@ public class getpageinfo_p {
// put keywords
String list[]=scraper.getKeywords();
int count = 0;
for(int i=0;i<list.length;i++){
prop.putHTML("tags_"+i+"_tag", list[i]);
String tag = list[i];
if (!tag.equals("")) {
while (i<(list.length-1) && !list[i+1].equals("")) {
i++;
tag += " "+list[i];
}
prop.putHTML("tags_"+count+"_tag", tag);
count++;
}
}
prop.put("tags", list.length);
prop.put("tags", count);
} catch (MalformedURLException e) { /* ignore this */
} catch (IOException e) { /* ignore this */

Loading…
Cancel
Save