Просмотр исходного кода

restrict wget filenames to windows-fs compatible characters

Nick Sweeting 6 лет назад
Родитель
Сommit
b69f26297b
1 измененных файлов с 1 добавлено и 1 удалено
  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',
         '--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 []),