From 755845c69aa8961d25c4b71960a8f8b58f9cd2f4 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 10 Jun 2018 22:43:01 -0400 Subject: [PATCH] use latest instead of deriving wget path --- archiver/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archiver/util.py b/archiver/util.py index d4f67ae7..793bbcc7 100644 --- a/archiver/util.py +++ b/archiver/util.py @@ -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'):