From 2bd11f9727b47fdee2e9fff57e149ba016284e4f Mon Sep 17 00:00:00 2001 From: Your Name <110548351+oop7@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:45:40 +0300 Subject: [PATCH] Check yt-dlp update on start --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.py b/main.py index cb94181..0cce8cd 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ import sys from PySide6.QtWidgets import QApplication, QMessageBox from ytsage_gui_main import YTSageApp # Import the main application class from ytsage_gui_main +from ytsage_utils import update_yt_dlp # Import the update function def show_error_dialog(message): error_dialog = QMessageBox() @@ -12,6 +13,13 @@ def show_error_dialog(message): def main(): try: + # Try to update yt-dlp before starting the app + try: + update_yt_dlp() + except Exception as e: + print(f"Warning: Could not update yt-dlp: {e}") + # Continue with application startup even if the update fails + app = QApplication(sys.argv) window = YTSageApp() # Instantiate the main application class window.show()