Add yt-dlp release channel selection to updater UI

Introduces UI elements and logic for selecting between stable and nightly yt-dlp release channels in the updater tab, with support for switching channels and displaying status. Updates all language files with new strings for channel selection and status messages, and adds a default 'ytdlp_channel' config key.
This commit is contained in:
oop7
2025-11-12 22:09:58 +02:00
parent b0c7616704
commit 4c07423b49
16 changed files with 362 additions and 4 deletions
+8
View File
@@ -267,6 +267,14 @@
"error_title": "错误",
"failed_save_settings": "保存自动更新设置失败。",
"error_saving_settings": "保存自动更新设置时出错:{error}",
"ytdlp_channel": "yt-dlp 发布渠道",
"ytdlp_channel_stable": "稳定版(经过测试的版本)",
"ytdlp_channel_nightly": "夜间版(每日更新,yt-dlp 推荐)",
"ytdlp_channel_description": "在稳定版和夜间版之间选择。夜间构建版每天更新,包含最新修复和功能。您可以随时切换渠道。",
"ytdlp_switching_channel": "正在切换到 {channel} 渠道...",
"ytdlp_channel_switched": "✅ 成功切换到 {channel} 渠道!",
"ytdlp_channel_switch_failed": "❌ 切换渠道失败:{error}",
"ytdlp_current_channel": "当前渠道:{channel}",
"auto_update_title": "自动更新设置",
"auto_update_header": "🔄 自动更新设置",
"auto_update_description": "为 yt-dlp 配置自动更新,以确保您始终拥有最新功能和错误修复。",