Skip to content

Commit

Permalink
Change warc importer to use defaultsurrogate-crawl profile, as reported
Browse files Browse the repository at this point in the history
by LA_FORGE http://forum.yacy-websuche.de/viewtopic.php?f=5&t=5990 and
analysed by @luccioman (see comment 510f11d)
it creates conflict using a other crawlprofile without setting originator.
  • Loading branch information
reger committed May 21, 2017
1 parent 3b1d640 commit 039162f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/net/yacy/document/importer/WarcImporter.java
Expand Up @@ -150,15 +150,15 @@ public void indexWarcRecords(InputStream f) throws IOException {
requestHeader.referer() == null ? null : requestHeader.referer().hash(),
"warc",
responseHeader.lastModified(),
Switchboard.getSwitchboard().crawler.defaultRemoteProfile.handle(), // use remote profile (to index text & media, without writing to cache
Switchboard.getSwitchboard().crawler.defaultSurrogateProfile.handle(),
0,
Switchboard.getSwitchboard().crawler.defaultRemoteProfile.timezoneOffset());
Switchboard.getSwitchboard().crawler.defaultSurrogateProfile.timezoneOffset());

final Response response = new Response(
request,
requestHeader,
responseHeader,
Switchboard.getSwitchboard().crawler.defaultRemoteProfile,
Switchboard.getSwitchboard().crawler.defaultSurrogateProfile,
false,
content
);
Expand Down

0 comments on commit 039162f

Please sign in to comment.