From 22c72aa842efa6d1dca3bb95eeb47122537ce12a Mon Sep 17 00:00:00 2001 From: Astounds Date: Fri, 27 Mar 2026 20:47:44 -0500 Subject: remove yt-dlp, fix captions PO Token issue, fix 429 retry logic - Remove yt-dlp entirely (modules, routes, settings, dependency) Was blocking page loads by running synchronously in gevent - Fix captions: use Android client caption URLs (no PO Token needed) instead of web timedtext URLs that YouTube now blocks - Fix 429 retry: fail immediately without Tor (same IP = pointless retry) Was causing ~27s delays with exponential backoff - Accept ytdlp_enabled as legacy setting to avoid warning on startup --- settings.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 27cfd7d..2aecc87 100644 --- a/settings.py +++ b/settings.py @@ -340,15 +340,6 @@ Archive: https://archive.ph/OZQbN''', 'hidden': True, }), - ('ytdlp_enabled', { - 'type': bool, - 'default': True, - 'comment': '''Enable yt-dlp integration for multi-language audio and subtitles''', - 'hidden': False, - 'label': 'Enable yt-dlp integration', - 'category': 'playback', - }), - ('settings_version', { 'type': int, 'default': 6, @@ -359,7 +350,8 @@ Archive: https://archive.ph/OZQbN''', program_directory = os.path.dirname(os.path.realpath(__file__)) acceptable_targets = SETTINGS_INFO.keys() | { - 'enable_comments', 'enable_related_videos', 'preferred_video_codec' + 'enable_comments', 'enable_related_videos', 'preferred_video_codec', + 'ytdlp_enabled', } -- cgit v1.2.3