mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
use latest instead of deriving wget path
This commit is contained in:
parent
1a64c7e713
commit
755845c69a
1 changed files with 4 additions and 0 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue