From 304604f0d67db784ecd6e2fdc859691db517eb75 Mon Sep 17 00:00:00 2001 From: Muhamed <110548351+oop7@users.noreply.github.com> Date: Fri, 29 Nov 2024 21:54:51 +0200 Subject: [PATCH] Hot fix --- YTSage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YTSage.py b/YTSage.py index 222b786..eb4fba2 100644 --- a/YTSage.py +++ b/YTSage.py @@ -343,7 +343,7 @@ class YouTubeDownloaderGUI(QMainWindow): # Include all video formats (both with and without audio) filtered_formats.extend([f for f in self.all_formats if f.get('vcodec') != 'none' - and f.get('filesize', 0) > 0]) + and f.get('filesize') is not None]) if self.audio_btn.isChecked(): # Add audio-only formats @@ -351,7 +351,7 @@ class YouTubeDownloaderGUI(QMainWindow): if (f.get('vcodec') == 'none' or 'audio only' in f.get('format_note', '').lower()) and f.get('acodec') != 'none' - and f.get('filesize', 0) > 0]) + and f.get('filesize') is not None]) # Sort formats by quality def get_quality(f):