let html scraper accept html5 <link rel="icon"> for favicon links

pull/37/head
reger 9 years ago
parent 4d2b934487
commit 14803d58cd

@ -475,7 +475,7 @@ public class ContentScraper extends AbstractScraper implements Scraper {
final String type = tag.opts.getProperty("type", EMPTY_STRING);
final String hreflang = tag.opts.getProperty("hreflang", EMPTY_STRING);
if (rel.equalsIgnoreCase("shortcut icon")) {
if (rel.equalsIgnoreCase("shortcut icon") || rel.equalsIgnoreCase("icon")) { // html5 -> rel="icon")
final ImageEntry ie = new ImageEntry(newLink, linktitle, -1, -1, -1);
this.images.add(ie);
this.favicon = newLink;

Loading…
Cancel
Save