mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-23 06:05:46 +00:00
Merge branch 'master' into upgrade-httpclient-4-5
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