Skip to content

Commit

Permalink
Merge pull request ArchiveBox#36 from tscs37/patch-1
Browse files Browse the repository at this point in the history
Quick Fix for Wrong Argument Splitting on wget
  • Loading branch information
pirate authored Jul 8, 2017
2 parents 4bc3698 + ba8307c commit 3d261c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def fetch_wget(out_dir, link, overwrite=False, requisites=True, timeout=TIMEOUT)
CMD = [
*'wget --timestamping --adjust-extension --no-parent'.split(' '), # Docs: https://www.gnu.org/software/wget/manual/wget.html
*(('--page-requisites', '--convert-links') if requisites else ()),
*(('--user-agent="{}"'.format(WGET_USER_AGENT)) if WGET_USER_AGENT else ()),
*(('--user-agent="{}"'.format(WGET_USER_AGENT), '') if WGET_USER_AGENT else ()),
link['url'],
]
end = progress(timeout, prefix=' ')
Expand Down

0 comments on commit 3d261c4

Please sign in to comment.