Add generic-mode URL validation and UI
Introduce a "generic_mode" option to allow validating/downloading from non-YouTube sites and wire it through the UI, config, and validation logic. Key changes: - Add generic_mode default to ConfigManager and persist setting from DownloadSettingsDialog (checkbox + help text). - Extend validate_video_url to accept a generic_mode flag and allow any http/https URL with a domain when enabled; pass this flag from Analysis and Download flows. - Update YTSageApp to load/save generic_mode, update URL placeholder and settings tooltip behavior, and refresh tooltip when settings change. - Improve robustness in FormatTableMixin: handle None/incorrect types for format_note, abr, resolution, ext, and codec values to avoid type errors and ensure consistent display. - Add localization entries for generic mode, placeholder, and related help text across multiple language files and update the in-app default localization strings. These changes enable broader site support via yt-dlp while hardening UI format handling and keeping user settings persistent.
This commit is contained in:
@@ -274,6 +274,9 @@
|
||||
"browse": "Procurar...",
|
||||
"speed_limit": "Limite de Velocidade",
|
||||
"speed_limit_placeholder": "Nenhum",
|
||||
"generic_mode": "Modo genérico",
|
||||
"enable_generic_mode": "Ativar modo genérico (suporte a sites que não são do YouTube)",
|
||||
"generic_mode_help": "Permite baixar de Dailymotion, CBC Gem e outros sites compatíveis com o yt-dlp.",
|
||||
"auto_update_ytdlp": "Auto-Atualizar yt-dlp",
|
||||
"enable_auto_updates": "Habilitar atualizações automáticas do yt-dlp",
|
||||
"update_frequency": "Frequência de atualização:",
|
||||
@@ -337,6 +340,7 @@
|
||||
},
|
||||
"main_ui": {
|
||||
"url_placeholder": "Digite a URL do vídeo ou playlist do YouTube",
|
||||
"url_placeholder_generic": "Digite a URL de um vídeo ou playlist de qualquer site compatível",
|
||||
"merge_subtitles": "Mesclar Legendas",
|
||||
"save_thumbnail": "Salvar Miniatura",
|
||||
"save_description": "Salvar Descrição",
|
||||
|
||||
Reference in New Issue
Block a user