From a11ee8d8c0fd1f924d7ba7feec58cd3fcf28752b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 14 Sep 2018 19:00:09 -0700 Subject: fix matched_importer --- python/fatcat/matched_importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/fatcat/matched_importer.py b/python/fatcat/matched_importer.py index 44735d52..7f55369b 100644 --- a/python/fatcat/matched_importer.py +++ b/python/fatcat/matched_importer.py @@ -42,10 +42,10 @@ class FatcatMatchedImporter(FatcatImporter): rel = self.default_link_rel # TODO: this is where we could map specific domains to rel types, # and also filter out bad domains, invalid URLs, etc - if "//archive.org/" in url or "//arxiv.org/" in url: + if "//archive.org/" in raw or "//arxiv.org/" in raw: # TODO: special-case the arxiv.org bulk mirror? rel = "repository" - elif "//web.archive.org/" in url or "//archive.is/" in url: + elif "//web.archive.org/" in raw or "//archive.is/" in raw: rel = "webarchive" return fatcat_client.FileEntityUrls(url=raw, rel=rel) -- cgit v1.2.3