aboutsummaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorAstounds <kirito@disroot.org>2026-03-27 20:47:44 -0500
committerAstounds <kirito@disroot.org>2026-03-27 20:47:44 -0500
commit22c72aa842efa6d1dca3bb95eeb47122537ce12a (patch)
treea94cf15bd0d7748db0532f56ddefde1fda74a33d /settings.py
parent56ecd6cb1b461bd3622c669936050fa7e4d83542 (diff)
downloadyt-local-22c72aa842efa6d1dca3bb95eeb47122537ce12a.tar.lz
yt-local-22c72aa842efa6d1dca3bb95eeb47122537ce12a.tar.xz
yt-local-22c72aa842efa6d1dca3bb95eeb47122537ce12a.zip
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
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py12
1 files changed, 2 insertions, 10 deletions
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',
}