pull/704/head
Tom Morrell 2019-06-13 12:22:31 -07:00
rodzic f35e2a0382
commit d2016bb722
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -29,7 +29,7 @@ class Zenodo(ContentProvider):
return urlopen(req)
def _process_doi(self, doi):
def _doi2url(self, doi):
# Transform a DOI to a URL
# If not a doi, assume we have a URL and return
if is_doi(doi):
@ -67,7 +67,7 @@ class Zenodo(ContentProvider):
},
]
url = self._process_doi(doi)
url = self._doi2url(doi)
for host in hosts:
if any([url.startswith(s) for s in host["hostname"]]):