Ensure yt-dlp Availability in Video Info Module

This commit is contained in:
Your Name
2025-07-04 21:35:39 +03:00
parent 36f9996424
commit c75c36eea9
+6 -1
View File
@@ -16,7 +16,12 @@ from pathlib import Path
from packaging import version from packaging import version
import subprocess import subprocess
import re import re
import yt_dlp try:
import yt_dlp
YT_DLP_AVAILABLE = True
except ImportError:
YT_DLP_AVAILABLE = False
print("Warning: yt-dlp not available at startup, will be downloaded at runtime")
from ytsage_gui_dialogs import SubtitleSelectionDialog from ytsage_gui_dialogs import SubtitleSelectionDialog
class VideoInfoMixin: class VideoInfoMixin: