1
0
Fork 0
mirror of synced 2024-09-28 07:11:14 +12:00

config.py: add WGET_AUTO_COMPRESSION

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

View file

@ -72,6 +72,7 @@ TEMPLATES_DIR = os.path.join(PYTHON_PATH, 'templates')
CHROME_SANDBOX = os.getenv('CHROME_SANDBOX', 'True').lower() == 'true'
USE_CHROME = FETCH_PDF or FETCH_SCREENSHOT or FETCH_DOM
USE_WGET = FETCH_WGET or FETCH_WGET_REQUISITES or FETCH_WARC
WGET_AUTO_COMPRESSION = not run([WGET_BINARY, "--compression=auto", "--help"], stdout=DEVNULL).returncode
########################### Environment & Dependencies #########################