Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
add html5 audio/video <source> tag to html content scraper - <source src=.. type=..> tag content is added to embed collection
reger2eb76827724b
diff --git a/source/net/yacy/document/parser/html/ContentScraper.java b/source/net/yacy/document/parser/html/ContentScraper.javaindex 217db08eb..8142317d2 100644--- a/source/net/yacy/document/parser/html/ContentScraper.java+++ b/source/net/yacy/document/parser/html/ContentScraper.java@@ -97,6 +97,7 @@ public class ContentScraper extends AbstractScraper implements Scraper {embed(TagType.singleton), //added by [MN]param(TagType.singleton), //added by [MN]iframe(TagType.singleton), // scraped as singleton to get such iframes that have no closing tag+ source(TagType.singleton), // html5 (part of <video> <audio>) - scaped like embeda(TagType.pair),h1(TagType.pair),@@ -463,7 +464,7 @@ public class ContentScraper extends AbstractScraper implements Scraper {this.anchors.add(newLink);}}- } else if(tag.name.equalsIgnoreCase("embed")) {+ } else if(tag.name.equalsIgnoreCase("embed") || tag.name.equalsIgnoreCase("source")) { //html5 tagfinal String src = tag.opts.getProperty("src", EMPTY_STRING);try {if (src.length() > 0) {