diff --git a/src/gui/ytsage_gui_video_info.py b/src/gui/ytsage_gui_video_info.py index 354e9d9..362524d 100644 --- a/src/gui/ytsage_gui_video_info.py +++ b/src/gui/ytsage_gui_video_info.py @@ -8,7 +8,6 @@ from PIL import Image from PySide6.QtCore import Qt from PySide6.QtGui import QPixmap from PySide6.QtWidgets import QHBoxLayout, QLabel, QMainWindow, QPushButton, QVBoxLayout, QWidget -from yt_dlp import YoutubeDL from src.core.ytsage_logging import logger from src.gui.ytsage_gui_dialogs import ( # use of src\gui\ytsage_gui_dialogs\__init__.py @@ -372,6 +371,9 @@ class VideoInfoMixin: return False try: + # Import yt_dlp locally to avoid import errors when yt-dlp is not installed + from yt_dlp import YoutubeDL + logger.debug(f"Attempting to save thumbnail for URL: {video_url}") ydl_opts = {