Explorar o código

restrict wget filenames to windows-fs compatible characters

Nick Sweeting %!s(int64=6) %!d(string=hai) anos
pai
achega
b69f26297b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      archivebox/legacy/archive_methods.py

+ 1 - 1
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 []),