From b69f26297b08a1db057426e469c38db936097c06 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 11 Apr 2019 03:40:16 -0400 Subject: [PATCH] restrict wget filenames to windows-fs compatible characters --- archivebox/legacy/archive_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/legacy/archive_methods.py b/archivebox/legacy/archive_methods.py index d30d008d..4eedb24e 100644 --- a/archivebox/legacy/archive_methods.py +++ b/archivebox/legacy/archive_methods.py @@ -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 []),