1
0
Fork 0
mirror of synced 2024-06-26 10:00:19 +12:00

use latest instead of deriving wget path

This commit is contained in:
Nick Sweeting 2018-06-10 22:43:01 -04:00
parent 1a64c7e713
commit 755845c69a

View file

@ -409,6 +409,10 @@ def wget_output_path(link, look_in=None):
See docs on wget --adjust-extension (-E)
"""
# if we have it stored, always prefer the actual output path to computed one
if link.get('latest', {}).get('wget'):
return link['latest']['wget']
urlencode = lambda s: quote(s, encoding='utf-8', errors='replace')
if link['type'] in ('PDF', 'image'):