mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-25 23:25:44 +00:00
Merge pull request #398 from kris-sigur/sitemap-tweak
Annotate nested sitemap links as sitemaps
This commit is contained in:
@@ -160,9 +160,15 @@ public class ExtractorSitemap extends ContentExtractor {
|
||||
|
||||
// Add the URI:
|
||||
// Adding 'regular' URL listed in the sitemap
|
||||
addRelativeToBase(curi, max, newUri.toString(),
|
||||
CrawlURI newCuri = addRelativeToBase(curi, max, newUri.toString(),
|
||||
LinkContext.MANIFEST_MISC, Hop.MANIFEST);
|
||||
|
||||
if (isSitemap) {
|
||||
// Annotate as a Site Map:
|
||||
newCuri.getAnnotations().add(
|
||||
ExtractorRobotsTxt.ANNOTATION_IS_SITEMAP);
|
||||
}
|
||||
|
||||
// And log about it:
|
||||
LOGGER.fine("Found " + newUri + " from " + curi + " Dated "
|
||||
+ lastModified + " and with isSitemap = " + isSitemap);
|
||||
|
||||
Reference in New Issue
Block a user