From 5802be0956efbb40b90101722d32a7480d85ffb6 Mon Sep 17 00:00:00 2001 From: I-G-1-1 <96726059+I-G-1-1@users.noreply.github.com> Date: Wed, 27 Sep 2023 10:24:09 +0200 Subject: [PATCH] Update downloader.py Fixed an issue with yt_dlp downloader that was generating a 0 byte temp file resulting in trailer downloading error. --- downloaders/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloaders/downloader.py b/downloaders/downloader.py index faed8e1..4b1e929 100755 --- a/downloaders/downloader.py +++ b/downloaders/downloader.py @@ -51,7 +51,7 @@ def downloadYouTube(self, fileName, destinationDirectory, link): tempFilePath = os.path.join(DL_DIRECTORY, fileName) destinationPath = os.path.join(destinationDirectory, fileName) options = { - 'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]', + 'format': 'bestvideo[vcodec^=avc]+bestaudio[ext=m4a]', 'default_search': 'auto', 'restrictfilenames': True, 'prefer_ffmpeg': True,