mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-30 09:39:52 +02:00
restrict wget filenames to windows-fs compatible characters
This commit is contained in:
@@ -265,7 +265,7 @@ def fetch_wget(link: Link, link_dir: Optional[str]=None, timeout: int=TIMEOUT) -
|
|||||||
'--span-hosts',
|
'--span-hosts',
|
||||||
'--no-parent',
|
'--no-parent',
|
||||||
'-e', 'robots=off',
|
'-e', 'robots=off',
|
||||||
'--restrict-file-names=unix',
|
'--restrict-file-names=windows',
|
||||||
'--timeout={}'.format(timeout),
|
'--timeout={}'.format(timeout),
|
||||||
*([] if FETCH_WARC else ['--timestamping']),
|
*([] if FETCH_WARC else ['--timestamping']),
|
||||||
*(['--warc-file={}'.format(warc_path)] if FETCH_WARC else []),
|
*(['--warc-file={}'.format(warc_path)] if FETCH_WARC else []),
|
||||||
|
Reference in New Issue
Block a user