1
0
Fork 0
mirror of synced 2024-06-29 03:20:58 +12:00

restrict wget filenames to windows-fs compatible characters

This commit is contained in:
Nick Sweeting 2019-04-11 03:40:16 -04:00
parent bf6a90f6b3
commit b69f26297b

View file

@ -265,7 +265,7 @@ def fetch_wget(link: Link, link_dir: Optional[str]=None, timeout: int=TIMEOUT) -
'--span-hosts',
'--no-parent',
'-e', 'robots=off',
'--restrict-file-names=unix',
'--restrict-file-names=windows',
'--timeout={}'.format(timeout),
*([] if FETCH_WARC else ['--timestamping']),
*(['--warc-file={}'.format(warc_path)] if FETCH_WARC else []),