Add output format selection to settings

Introduces new settings for forcing output format when merging videos, allowing users to select a preferred format (mp4, webm, mkv). Updates all language files with relevant translations, adds UI controls in the settings dialog, persists settings via ConfigManager, and passes options through the download workflow to yt-dlp.
This commit is contained in:
oop7
2025-11-03 20:53:53 +02:00
parent 70a913b903
commit 3729d2941e
18 changed files with 203 additions and 16 deletions
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "تكرار التحديثات",
"save_settings": "حفظ الإعدادات",
"settings_saved_successfully": "✅ تم حفظ الإعدادات بنجاح!",
"error_saving": "❌ خطأ في حفظ الإعدادات: {error}"
"error_saving": "❌ خطأ في حفظ الإعدادات: {error}",
"output_format_settings": "إعدادات تنسيق الإخراج",
"force_output_format": "فرض تنسيق الإخراج عند الدمج",
"preferred_format": "التنسيق المفضل:",
"force_format_help": "عند التمكين، سيتم تحويل الفيديوهات المدموجة إلى تنسيقك المفضل. قم بالتعطيل للسماح لـ yt-dlp بالقرار تلقائياً.",
"format_mp4": "MP4 (الأكثر توافقاً)",
"format_webm": "WebM (حديث، مفتوح)",
"format_mkv": "MKV (غني بالميزات)"
},
"main_ui": {
"url_placeholder": "أدخل رابط فيديو يوتيوب أو قائمة تشغيل",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Update-Häufigkeit",
"save_settings": "Einstellungen speichern",
"settings_saved_successfully": "✅ Einstellungen erfolgreich gespeichert!",
"error_saving": "❌ Fehler beim Speichern der Einstellungen: {error}"
"error_saving": "❌ Fehler beim Speichern der Einstellungen: {error}",
"output_format_settings": "Ausgabeformat-Einstellungen",
"force_output_format": "Ausgabeformat beim Zusammenführen erzwingen",
"preferred_format": "Bevorzugtes Format:",
"force_format_help": "Wenn aktiviert, werden zusammengeführte Videos in Ihr bevorzugtes Format konvertiert. Deaktivieren Sie diese Option, damit yt-dlp automatisch entscheidet.",
"format_mp4": "MP4 (Am kompatibelsten)",
"format_webm": "WebM (Modern, offen)",
"format_mkv": "MKV (Funktionsreich)"
},
"main_ui": {
"url_placeholder": "YouTube-Video- oder Playlist-URL eingeben",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Update Frequency",
"save_settings": "Save Settings",
"settings_saved_successfully": "✅ Settings saved successfully!",
"error_saving": "❌ Error saving settings: {error}"
"error_saving": "❌ Error saving settings: {error}",
"output_format_settings": "Output Format Settings",
"force_output_format": "Force output format when merging",
"preferred_format": "Preferred format:",
"force_format_help": "When enabled, merged videos will be converted to your preferred format. Disable to let yt-dlp decide automatically.",
"format_mp4": "MP4 (Most compatible)",
"format_webm": "WebM (Modern, open)",
"format_mkv": "MKV (Feature-rich)"
},
"main_ui": {
"url_placeholder": "Enter YouTube video or playlist URL",
+8 -1
View File
@@ -260,7 +260,14 @@
"update_frequency_group": "Frecuencia de Actualización",
"save_settings": "Guardar Configuración",
"settings_saved_successfully": "✅ ¡Configuración guardada exitosamente!",
"error_saving": "❌ Error al guardar configuración: {error}"
"error_saving": "❌ Error al guardar configuración: {error}",
"output_format_settings": "Configuración de Formato de Salida",
"force_output_format": "Forzar formato de salida al combinar",
"preferred_format": "Formato preferido:",
"force_format_help": "Cuando está habilitado, los videos combinados se convertirán a su formato preferido. Deshabilitar para dejar que yt-dlp decida automáticamente.",
"format_mp4": "MP4 (Más compatible)",
"format_webm": "WebM (Moderno, abierto)",
"format_mkv": "MKV (Rico en funciones)"
},
"main_ui": {
"url_placeholder": "Ingresa URL de video o lista de YouTube",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Fréquence de mise à jour",
"save_settings": "Sauvegarder les paramètres",
"settings_saved_successfully": "✅ Paramètres sauvegardés avec succès !",
"error_saving": "❌ Erreur lors de la sauvegarde des paramètres : {error}"
"error_saving": "❌ Erreur lors de la sauvegarde des paramètres : {error}",
"output_format_settings": "Paramètres du format de sortie",
"force_output_format": "Forcer le format de sortie lors de la fusion",
"preferred_format": "Format préféré :",
"force_format_help": "Lorsqu'activé, les vidéos fusionnées seront converties vers votre format préféré. Désactivez pour laisser yt-dlp décider automatiquement.",
"format_mp4": "MP4 (Plus compatible)",
"format_webm": "WebM (Moderne, ouvert)",
"format_mkv": "MKV (Riche en fonctionnalités)"
},
"main_ui": {
"url_placeholder": "Entrer l'URL de la vidéo ou de la playlist YouTube",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "अपडेट आवृत्ति",
"save_settings": "सेटिंग्स सेव करें",
"settings_saved_successfully": "✅ सेटिंग्स सफलतापूर्वक सेव हुईं!",
"error_saving": "❌ सेटिंग्स सेव करने में त्रुटि: {error}"
"error_saving": "❌ सेटिंग्स सेव करने में त्रुटि: {error}",
"output_format_settings": "आउटपुट प्रारूप सेटिंग्स",
"force_output_format": "मर्ज करते समय आउटपुट प्रारूप बाध्य करें",
"preferred_format": "पसंदीदा प्रारूप:",
"force_format_help": "सक्षम होने पर, मर्ज किए गए वीडियो आपके पसंदीदा प्रारूप में परिवर्तित हो जाएंगे। yt-dlp को स्वचालित रूप से निर्णय लेने देने के लिए अक्षम करें।",
"format_mp4": "MP4 (सबसे संगत)",
"format_webm": "WebM (आधुनिक, खुला)",
"format_mkv": "MKV (सुविधा समृद्ध)"
},
"main_ui": {
"url_placeholder": "YouTube वीडियो या प्लेलिस्ट URL दर्ज करें",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Frekuensi pembaruan",
"save_settings": "Simpan pengaturan",
"settings_saved_successfully": "✅ Pengaturan berhasil disimpan!",
"error_saving": "❌ Kesalahan menyimpan pengaturan: {error}"
"error_saving": "❌ Kesalahan menyimpan pengaturan: {error}",
"output_format_settings": "Pengaturan Format Output",
"force_output_format": "Paksa format output saat menggabungkan",
"preferred_format": "Format yang disukai:",
"force_format_help": "Jika diaktifkan, video yang digabungkan akan dikonversi ke format pilihan Anda. Nonaktifkan untuk membiarkan yt-dlp memutuskan secara otomatis.",
"format_mp4": "MP4 (Paling kompatibel)",
"format_webm": "WebM (Modern, terbuka)",
"format_mkv": "MKV (Kaya fitur)"
},
"main_ui": {
"url_placeholder": "Masukkan URL video atau playlist YouTube",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Frequenza aggiornamenti",
"save_settings": "Salva impostazioni",
"settings_saved_successfully": "✅ Impostazioni salvate con successo!",
"error_saving": "❌ Errore nel salvataggio impostazioni: {error}"
"error_saving": "❌ Errore nel salvataggio impostazioni: {error}",
"output_format_settings": "Impostazioni formato output",
"force_output_format": "Forza formato output durante la fusione",
"preferred_format": "Formato preferito:",
"force_format_help": "Quando attivato, i video uniti verranno convertiti nel formato preferito. Disattiva per lasciare che yt-dlp decida automaticamente.",
"format_mp4": "MP4 (Più compatibile)",
"format_webm": "WebM (Moderno, aperto)",
"format_mkv": "MKV (Ricco di funzionalità)"
},
"main_ui": {
"url_placeholder": "Inserisci URL video YouTube o playlist",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "更新頻度",
"save_settings": "設定を保存",
"settings_saved_successfully": "✅ 設定が正常に保存されました!",
"error_saving": "❌ 設定の保存エラー: {error}"
"error_saving": "❌ 設定の保存エラー: {error}",
"output_format_settings": "出力形式設定",
"force_output_format": "マージ時に出力形式を強制",
"preferred_format": "優先形式:",
"force_format_help": "有効にすると、マージされた動画は優先形式に変換されます。無効にすると、yt-dlpが自動的に決定します。",
"format_mp4": "MP4(最も互換性が高い)",
"format_webm": "WebM(モダン、オープン)",
"format_mkv": "MKV(機能豊富)"
},
"main_ui": {
"url_placeholder": "YouTubeの動画URLまたはプレイリストURLを入力",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Częstotliwość aktualizacji",
"save_settings": "Zapisz ustawienia",
"settings_saved_successfully": "✅ Ustawienia zapisane pomyślnie!",
"error_saving": "❌ Błąd zapisywania ustawień: {error}"
"error_saving": "❌ Błąd zapisywania ustawień: {error}",
"output_format_settings": "Ustawienia formatu wyjściowego",
"force_output_format": "Wymuś format wyjściowy podczas łączenia",
"preferred_format": "Preferowany format:",
"force_format_help": "Po włączeniu połączone filmy zostaną przekonwertowane na wybrany format. Wyłącz, aby pozwolić yt-dlp zdecydować automatycznie.",
"format_mp4": "MP4 (Najbardziej kompatybilny)",
"format_webm": "WebM (Nowoczesny, otwarty)",
"format_mkv": "MKV (Bogaty w funkcje)"
},
"main_ui": {
"url_placeholder": "Wprowadź URL wideo YouTube lub playlisty",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Frequência de Atualização",
"save_settings": "Salvar Configurações",
"settings_saved_successfully": "✅ Configurações salvas com sucesso!",
"error_saving": "❌ Erro ao salvar configurações: {error}"
"error_saving": "❌ Erro ao salvar configurações: {error}",
"output_format_settings": "Configurações de Formato de Saída",
"force_output_format": "Forçar formato de saída ao mesclar",
"preferred_format": "Formato preferido:",
"force_format_help": "Quando ativado, os vídeos mesclados serão convertidos para o seu formato preferido. Desative para deixar o yt-dlp decidir automaticamente.",
"format_mp4": "MP4 (Mais compatível)",
"format_webm": "WebM (Moderno, aberto)",
"format_mkv": "MKV (Rico em recursos)"
},
"main_ui": {
"url_placeholder": "Digite a URL do vídeo ou playlist do YouTube",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Частота обновления",
"save_settings": "Сохранить настройки",
"settings_saved_successfully": "✅ Настройки успешно сохранены!",
"error_saving": "❌ Ошибка сохранения настроек: {error}"
"error_saving": "❌ Ошибка сохранения настроек: {error}",
"output_format_settings": "Настройки выходного формата",
"force_output_format": "Принудительно задать выходной формат при объединении",
"preferred_format": "Предпочтительный формат:",
"force_format_help": "Когда включено, объединённые видео будут конвертированы в ваш предпочтительный формат. Отключите, чтобы yt-dlp решал автоматически.",
"format_mp4": "MP4 (Наиболее совместимый)",
"format_webm": "WebM (Современный, открытый)",
"format_mkv": "MKV (Многофункциональный)"
},
"main_ui": {
"url_placeholder": "Введите URL видео или плейлиста YouTube",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "Güncelleme sıklığı",
"save_settings": "Ayarları kaydet",
"settings_saved_successfully": "✅ Ayarlar başarıyla kaydedildi!",
"error_saving": "❌ Ayarları kaydetme hatası: {error}"
"error_saving": "❌ Ayarları kaydetme hatası: {error}",
"output_format_settings": "Çıktı Formatı Ayarları",
"force_output_format": "Birleştirirken çıktı formatını zorla",
"preferred_format": "Tercih edilen format:",
"force_format_help": "Etkinleştirildiğinde, birleştirilen videolar tercih ettiğiniz formata dönüştürülür. yt-dlp'nin otomatik karar vermesini sağlamak için devre dışı bırakın.",
"format_mp4": "MP4 (En uyumlu)",
"format_webm": "WebM (Modern, açık)",
"format_mkv": "MKV (Özellik açısından zengin)"
},
"main_ui": {
"url_placeholder": "YouTube video veya oynatma listesi URL'sini girin",
+8 -1
View File
@@ -277,7 +277,14 @@
"update_frequency_group": "更新频率",
"save_settings": "保存设置",
"settings_saved_successfully": "✅ 设置保存成功!",
"error_saving": "❌ 保存设置时出错:{error}"
"error_saving": "❌ 保存设置时出错:{error}",
"output_format_settings": "输出格式设置",
"force_output_format": "合并时强制输出格式",
"preferred_format": "首选格式:",
"force_format_help": "启用后,合并的视频将转换为您的首选格式。禁用以让 yt-dlp 自动决定。",
"format_mp4": "MP4(最兼容)",
"format_webm": "WebM(现代、开放)",
"format_mkv": "MKV(功能丰富)"
},
"main_ui": {
"url_placeholder": "输入 YouTube 视频或播放列表网址",