mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix CHROME_TIMEOUT causing hanging on some platforms
This commit is contained in:
parent
ac96cc62fc
commit
beefe69b74
1 changed files with 4 additions and 3 deletions
|
@ -185,12 +185,13 @@ class ChromeConfig(BaseConfigSet):
|
||||||
if options.CHROME_USER_AGENT:
|
if options.CHROME_USER_AGENT:
|
||||||
cmd_args += ('--user-agent={}'.format(options.CHROME_USER_AGENT),)
|
cmd_args += ('--user-agent={}'.format(options.CHROME_USER_AGENT),)
|
||||||
|
|
||||||
if options.CHROME_TIMEOUT:
|
# this no longer works on newer chrome version for some reason, just causes chrome to hang indefinitely:
|
||||||
cmd_args += ('--timeout={}'.format(options.CHROME_TIMEOUT * 1000),)
|
# if options.CHROME_TIMEOUT:
|
||||||
|
# cmd_args += ('--timeout={}'.format(options.CHROME_TIMEOUT * 1000),)
|
||||||
|
|
||||||
if options.CHROME_USER_DATA_DIR:
|
if options.CHROME_USER_DATA_DIR:
|
||||||
cmd_args.append('--user-data-dir={}'.format(options.CHROME_USER_DATA_DIR))
|
cmd_args.append('--user-data-dir={}'.format(options.CHROME_USER_DATA_DIR))
|
||||||
cmd_args.append('--profile-directory={}'.format(options.CHROME_PROFILE_NAME))
|
cmd_args.append('--profile-directory={}'.format(options.CHROME_PROFILE_NAME or 'Default'))
|
||||||
|
|
||||||
return dedupe(cmd_args)
|
return dedupe(cmd_args)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue