From 9abbe92dccc6793e13042ba1621a0476638513af Mon Sep 17 00:00:00 2001 From: Miguel Caballer Fernandez Date: Mon, 24 Jun 2024 14:12:42 +0200 Subject: [PATCH] Fix issue with new Dryad REST API format for downloading files #75 (#76) --- datahugger/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datahugger/services.py b/datahugger/services.py index 5844649..05403f5 100644 --- a/datahugger/services.py +++ b/datahugger/services.py @@ -102,7 +102,7 @@ def API_URL_META(self): return f"https://datadryad.org{latest_version}/files" def _get_attr_link(self, record, base_url): - return base_url + record["_links"]["stash:file-download"]["href"] + return base_url + record["_links"]["stash:download"]["href"] class DataOneDataset(DatasetDownloader):