Skip to content

Commit

Permalink
[fix] download link is replaced with canonical URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolgyes committed Jun 8, 2018
1 parent b511b65 commit 28dd4a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/zenodo_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ def check_hash(filename, checksum):
else:
with open(options.wget, 'wt') as wgetfile:
for f in files:
link = f['links']['self']
wgetfile.write('{}\n'.format(link,))
fname = f['key']
link = ('https://zenodo.org/record/{}/files/{}\n'
.format(recordID, fname))
wgetfile.write(link)
else:
eprint('Title: {}'.format(js['metadata']['title']))
eprint('Keywords: '+(', '.join(js['metadata']['keywords'])))
Expand Down

0 comments on commit 28dd4a9

Please sign in to comment.