From fa9e3a2e8992779b80877b19090eaf15c8c7bc0e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 24 Jun 2019 14:07:48 -0700 Subject: matched importer: urls, not url This matches the docs in the header. Previous matched imports were using 'cdx' objects with no 'dt' key, but this makes more sense. As far as I know the old 'url' code path was never actually used (or tested, derp). --- python/fatcat_tools/importers/matched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/matched.py b/python/fatcat_tools/importers/matched.py index 3ef617d3..9cbd071f 100644 --- a/python/fatcat_tools/importers/matched.py +++ b/python/fatcat_tools/importers/matched.py @@ -96,7 +96,7 @@ class MatchedImporter(EntityImporter): # parse URLs and CDX urls = set() - for url in obj.get('url', []): + for url in obj.get('urls', []): url = make_rel_url(url, default_link_rel=self.default_link_rel) if url != None: urls.add(url) -- cgit v1.2.3