瀏覽代碼

fix CHROME_TIMEOUT causing hanging on some platforms

Nick Sweeting 1 年之前
父節點
當前提交
beefe69b74
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      archivebox/plugins_extractor/chrome/apps.py

+ 4 - 3
archivebox/plugins_extractor/chrome/apps.py

@@ -185,12 +185,13 @@ class ChromeConfig(BaseConfigSet):
         if options.CHROME_USER_AGENT:
             cmd_args += ('--user-agent={}'.format(options.CHROME_USER_AGENT),)
     
-        if options.CHROME_TIMEOUT:
-           cmd_args += ('--timeout={}'.format(options.CHROME_TIMEOUT * 1000),)
+        # this no longer works on newer chrome version for some reason, just causes chrome to hang indefinitely:
+        # if options.CHROME_TIMEOUT:
+        #   cmd_args += ('--timeout={}'.format(options.CHROME_TIMEOUT * 1000),)
     
         if 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)