From e99c80799d632bcf90196a0d79c4cbfe8c252100 Mon Sep 17 00:00:00 2001 From: Tim Head Date: Wed, 29 May 2019 07:10:35 +0200 Subject: [PATCH] Add comment about supporting Zenodo instances not at zenodo.org --- repo2docker/contentproviders/zenodo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repo2docker/contentproviders/zenodo.py b/repo2docker/contentproviders/zenodo.py index c3bbde6a..a1b60ece 100644 --- a/repo2docker/contentproviders/zenodo.py +++ b/repo2docker/contentproviders/zenodo.py @@ -16,6 +16,10 @@ class Zenodo(ContentProvider): def detect(self, doi, ref=None, extra_args=None): """Trigger this provider for things that resolve to a Zenodo record""" + # To support Zenodo instances not hosted at zenodo.org we need to + # start maintaining a list of known DOI prefixes and their hostname. + # We should also change to returning a complete `record_url` that + # fetch() can use instead of constructing a URL there doi = doi.lower() # 10.5281 is the Zenodo DOI prefix if doi.startswith("10.5281/"):