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

Try to add --compression back again

This commit is contained in:
Starbeamrainbowlabs 2019-03-26 23:38:50 +00:00 committed by GitHub
parent 51859731d3
commit ab72a2dad1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,7 @@ from config import (
WGET_USER_AGENT,
CHECK_SSL_VALIDITY,
COOKIES_FILE,
WGET_AUTO_COMPRESSION
)
from util import (
domain,
@ -227,6 +228,7 @@ def fetch_wget(link_dir, link, timeout=TIMEOUT):
'-e', 'robots=off',
'--restrict-file-names=unix',
'--timeout={}'.format(timeout),
*(('--compression=auto',) if WGET_AUTO_COMPRESSION else ()),
*(() if FETCH_WARC else ('--timestamping',)),
*(('--warc-file={}'.format(warc_path),) if FETCH_WARC else ()),
*(('--page-requisites',) if FETCH_WGET_REQUISITES else ()),