aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-10-14 17:29:11 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-10-14 18:11:12 -0700
commitc883f5d4b02b67c1af7d9cafe484ead85f02b97b (patch)
tree56242993688b411bab70b7817e0aa2c7452c0ef4 /python/fatcat_tools/importers
parent5eccb38074104960d88df00805d0ebd7ecf839f9 (diff)
downloadfatcat-c883f5d4b02b67c1af7d9cafe484ead85f02b97b.tar.gz
fatcat-c883f5d4b02b67c1af7d9cafe484ead85f02b97b.zip
WIP: rel fixes
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/ingest.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py
index 36d72651..301be3ef 100644
--- a/python/fatcat_tools/importers/ingest.py
+++ b/python/fatcat_tools/importers/ingest.py
@@ -628,23 +628,23 @@ class IngestFilesetResultImporter(IngestFileResultImporter):
if row['strategy'] == 'archiveorg-fileset' and row.get('archiveorg_item_name'):
urls.append(fatcat_openapi_client.FilesetUrl(
url=f"https://archive.org/download/{row['archiveorg_item_name']}/",
- rel="archive",
+ rel="archive-base",
))
- elif row['strategy'] == 'archiveorg-file-hundle' and row.get('archiveorg_item_name'):
+ elif row['strategy'] == 'archiveorg-fileset-bundle' and row.get('archiveorg_item_name'):
# XXX: what is the filename of bundle?
urls.append(fatcat_openapi_client.FilesetUrl(
url=f"https://archive.org/download/{row['archiveorg_item_name']}/",
- rel="archive",
+ rel="archive-bundle",
))
elif row['strategy'].startswith('web') and row.get('platform_base_url'):
urls.append(fatcat_openapi_client.FilesetUrl(
url=f"https://web.archive.org/web/{row['web_base_url_dt']}/{row['web_base_url']}",
rel="webarchive",
))
- elif row['strategy'] == 'web-file-bundle' and row.get('platform_bundle_url'):
+ elif row['strategy'] == 'web-fileset-bundle' and row.get('platform_bundle_url'):
urls.append(fatcat_openapi_client.FilesetUrl(
url=f"https://web.archive.org/web/{row['web_bundle_url_dt']}/{row['web_bundle_url']}",
- rel="webarchive",
+ rel="webarchive-bundle",
))
else:
# if no archival URLs, bail out
@@ -659,7 +659,7 @@ class IngestFilesetResultImporter(IngestFileResultImporter):
if row.get('platform_base_url'):
urls.append(fatcat_openapi_client.FilesetUrl(
url=row['platform_bundle_url'],
- rel="repository",
+ rel="repository-base",
))
return urls