Add thumbnail status messages and refactor thumbnail saving

Added new localized status messages for thumbnail saving in all supported languages. Refactored the thumbnail saving logic in ytsage_gui_video_info.py to use cached images from analysis instead of extracting via yt-dlp subprocess, improving reliability and performance.
This commit is contained in:
oop7
2025-11-28 18:00:56 +02:00
parent 7a6aaa6704
commit fc719a8cc8
15 changed files with 77 additions and 62 deletions
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ ملف الفيديو موجود بالفعل",
"audio_file_exists": "⚠️ ملف الصوت موجود بالفعل",
"subtitle_file_exists": "⚠️ ملف الترجمات موجود بالفعل",
"cancelling": "جاري إلغاء التنزيل..."
"cancelling": "جاري إلغاء التنزيل...",
"thumbnail_saved": "✅ تم حفظ الصورة المصغرة: {filename}",
"thumbnail_error": "❌ خطأ في الصورة المصغرة: {error}",
"thumbnail_no_image": "لا توجد صورة مصغرة متاحة للحفظ"
},
"errors": {
"playlist_no_videos": "خطأ: قائمة التشغيل لا تحتوي على مقاطع فيديو صالحة.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ Video-Datei existiert bereits",
"audio_file_exists": "⚠️ Audio-Datei existiert bereits",
"subtitle_file_exists": "⚠️ Untertitel-Datei existiert bereits",
"cancelling": "Download wird abgebrochen..."
"cancelling": "Download wird abgebrochen...",
"thumbnail_saved": "✅ Miniaturbild gespeichert: {filename}",
"thumbnail_error": "❌ Miniaturbild-Fehler: {error}",
"thumbnail_no_image": "Kein Miniaturbild zum Speichern verfügbar"
},
"errors": {
"playlist_no_videos": "Fehler: Playlist enthält keine gültigen Videos.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ Video file already exists",
"audio_file_exists": "⚠️ Audio file already exists",
"subtitle_file_exists": "⚠️ Subtitle file already exists",
"cancelling": "Cancelling download..."
"cancelling": "Cancelling download...",
"thumbnail_saved": "✅ Thumbnail saved: {filename}",
"thumbnail_error": "❌ Thumbnail error: {error}",
"thumbnail_no_image": "No thumbnail available to save"
},
"errors": {
"playlist_no_videos": "Error: Playlist contains no valid videos.",
+4 -1
View File
@@ -372,7 +372,10 @@
"video_file_exists": "⚠️ El archivo de video ya existe",
"audio_file_exists": "⚠️ El archivo de audio ya existe",
"subtitle_file_exists": "⚠️ El archivo de subtítulos ya existe",
"cancelling": "Cancelando descarga..."
"cancelling": "Cancelando descarga...",
"thumbnail_saved": "✅ Miniatura guardada: {filename}",
"thumbnail_error": "❌ Error de miniatura: {error}",
"thumbnail_no_image": "No hay miniatura disponible para guardar"
},
"errors": {
"playlist_no_videos": "Error: La lista de reproducción no contiene videos válidos.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ Le fichier vidéo existe déjà",
"audio_file_exists": "⚠️ Le fichier audio existe déjà",
"subtitle_file_exists": "⚠️ Le fichier de sous-titres existe déjà",
"cancelling": "Annulation du téléchargement..."
"cancelling": "Annulation du téléchargement...",
"thumbnail_saved": "✅ Miniature enregistrée : {filename}",
"thumbnail_error": "❌ Erreur de miniature : {error}",
"thumbnail_no_image": "Aucune miniature disponible à enregistrer"
},
"errors": {
"playlist_no_videos": "Erreur : La playlist ne contient aucune vidéo valide.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ वीडियो फ़ाइल पहले से मौजूद है",
"audio_file_exists": "⚠️ ऑडियो फ़ाइल पहले से मौजूद है",
"subtitle_file_exists": "⚠️ उपशीर्षक फ़ाइल पहले से मौजूद है",
"cancelling": "डाउनलोड रद्द हो रहा है..."
"cancelling": "डाउनलोड रद्द हो रहा है...",
"thumbnail_saved": "✅ थंबनेल सहेजा गया: {filename}",
"thumbnail_error": "❌ थंबनेल त्रुटि: {error}",
"thumbnail_no_image": "सहेजने के लिए कोई थंबनेल उपलब्ध नहीं"
},
"errors": {
"playlist_no_videos": "त्रुटि: प्लेलिस्ट में कोई वैध वीडियो नहीं है।",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ File video sudah ada",
"audio_file_exists": "⚠️ File audio sudah ada",
"subtitle_file_exists": "⚠️ File subtitle sudah ada",
"cancelling": "Membatalkan unduhan..."
"cancelling": "Membatalkan unduhan...",
"thumbnail_saved": "✅ Thumbnail disimpan: {filename}",
"thumbnail_error": "❌ Kesalahan thumbnail: {error}",
"thumbnail_no_image": "Tidak ada thumbnail yang tersedia untuk disimpan"
},
"errors": {
"playlist_no_videos": "Kesalahan: Playlist tidak berisi video yang valid.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ File video già esistente",
"audio_file_exists": "⚠️ File audio già esistente",
"subtitle_file_exists": "⚠️ File sottotitoli già esistente",
"cancelling": "Annullamento download..."
"cancelling": "Annullamento download...",
"thumbnail_saved": "✅ Miniatura salvata: {filename}",
"thumbnail_error": "❌ Errore miniatura: {error}",
"thumbnail_no_image": "Nessuna miniatura disponibile da salvare"
},
"errors": {
"playlist_no_videos": "Errore: La playlist non contiene video validi.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ 動画ファイルがすでに存在します",
"audio_file_exists": "⚠️ 音声ファイルがすでに存在します",
"subtitle_file_exists": "⚠️ 字幕ファイルがすでに存在します",
"cancelling": "ダウンロードをキャンセル中..."
"cancelling": "ダウンロードをキャンセル中...",
"thumbnail_saved": "✅ サムネイルを保存しました: {filename}",
"thumbnail_error": "❌ サムネイルエラー: {error}",
"thumbnail_no_image": "保存できるサムネイルがありません"
},
"errors": {
"playlist_no_videos": "エラー: 再生リストに有効な動画が含まれていません。",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ Plik wideo już istnieje",
"audio_file_exists": "⚠️ Plik audio już istnieje",
"subtitle_file_exists": "⚠️ Plik napisów już istnieje",
"cancelling": "Anulowanie pobierania..."
"cancelling": "Anulowanie pobierania...",
"thumbnail_saved": "✅ Miniatura zapisana: {filename}",
"thumbnail_error": "❌ Błąd miniatury: {error}",
"thumbnail_no_image": "Brak miniatury do zapisania"
},
"errors": {
"playlist_no_videos": "Błąd: Playlista nie zawiera prawidłowych wideo.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ Arquivo de vídeo já existe",
"audio_file_exists": "⚠️ Arquivo de áudio já existe",
"subtitle_file_exists": "⚠️ Arquivo de legendas já existe",
"cancelling": "Cancelando download..."
"cancelling": "Cancelando download...",
"thumbnail_saved": "✅ Miniatura salva: {filename}",
"thumbnail_error": "❌ Erro na miniatura: {error}",
"thumbnail_no_image": "Nenhuma miniatura disponível para salvar"
},
"errors": {
"playlist_no_videos": "Erro: A playlist não contém vídeos válidos.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ Видеофайл уже существует",
"audio_file_exists": "⚠️ Аудиофайл уже существует",
"subtitle_file_exists": "⚠️ Файл субтитров уже существует",
"cancelling": "Отмена загрузки..."
"cancelling": "Отмена загрузки...",
"thumbnail_saved": "✅ Миниатюра сохранена: {filename}",
"thumbnail_error": "❌ Ошибка миниатюры: {error}",
"thumbnail_no_image": "Нет доступной миниатюры для сохранения"
},
"errors": {
"playlist_no_videos": "Ошибка: Плейлист не содержит действительных видео.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ Video dosyası zaten mevcut",
"audio_file_exists": "⚠️ Ses dosyası zaten mevcut",
"subtitle_file_exists": "⚠️ Altyazı dosyası zaten mevcut",
"cancelling": "İndirme iptal ediliyor..."
"cancelling": "İndirme iptal ediliyor...",
"thumbnail_saved": "✅ Küçük resim kaydedildi: {filename}",
"thumbnail_error": "❌ Küçük resim hatası: {error}",
"thumbnail_no_image": "Kaydedilecek küçük resim yok"
},
"errors": {
"playlist_no_videos": "Hata: Oynatma listesi geçerli video içermiyor.",
+4 -1
View File
@@ -389,7 +389,10 @@
"video_file_exists": "⚠️ 视频文件已存在",
"audio_file_exists": "⚠️ 音频文件已存在",
"subtitle_file_exists": "⚠️ 字幕文件已存在",
"cancelling": "正在取消下载..."
"cancelling": "正在取消下载...",
"thumbnail_saved": "✅ 缩略图已保存: {filename}",
"thumbnail_error": "❌ 缩略图错误: {error}",
"thumbnail_no_image": "没有可保存的缩略图"
},
"errors": {
"playlist_no_videos": "错误:播放列表不包含有效视频。",