瀏覽代碼

yt-dlp fixes

Joseph Turian 3 年之前
父節點
當前提交
f729bbe122
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      archivebox/config.py

+ 7 - 2
archivebox/config.py

@@ -144,12 +144,17 @@ CONFIG_SCHEMA: Dict[str, ConfigDefaultDict] = {
                                                                 '--no-call-home',
                                                                 '--write-sub',
                                                                 '--all-subs',
-                                                                '--write-auto-sub',
+                                                                # There are too many of these and youtube
+                                                                # throttles you with HTTP error 429
+                                                                #'--write-auto-sub',
                                                                 '--convert-subs=srt',
                                                                 '--yes-playlist',
                                                                 '--continue',
-                                                                '--ignore-errors',
                                                                 '--no-abort-on-error',
+                                                                # --ignore-errors must come AFTER
+                                                                # --no-abort-on-error
+                                                                # https://github.com/yt-dlp/yt-dlp/issues/4914
+                                                                '--ignore-errors',
                                                                 '--geo-bypass',
                                                                 '--add-metadata',
                                                                 '--max-filesize={}'.format(c['MEDIA_MAX_SIZE']),