From c75c36eea995e5eba39a504fc89333c113acedbb Mon Sep 17 00:00:00 2001 From: Your Name <110548351+oop7@users.noreply.github.com> Date: Fri, 4 Jul 2025 21:35:39 +0300 Subject: [PATCH] Ensure yt-dlp Availability in Video Info Module --- ytsage_gui_video_info.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ytsage_gui_video_info.py b/ytsage_gui_video_info.py index c05f591..c903fe4 100644 --- a/ytsage_gui_video_info.py +++ b/ytsage_gui_video_info.py @@ -16,7 +16,12 @@ from pathlib import Path from packaging import version import subprocess 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 class VideoInfoMixin: