From fffcc743af6f392e89aef0aba3d18086860ca46a Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 20 Jun 2025 23:54:42 +0200 Subject: [PATCH] add log info --- get_youtube_videos/get_youtube_videos.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index 8dfbb44..223116a 100644 --- a/get_youtube_videos/get_youtube_videos.py +++ b/get_youtube_videos/get_youtube_videos.py @@ -325,6 +325,9 @@ class GetYoutubeVideos: ) except yt_dlp.utils.DownloadError as error: if 'Requested format is not available' in f"{error}": + self._log.warning( + f"Requested format is not available, trying best format." + ) ydl_opts['format'] = 'bestvideo+bestaudio[ext=m4a]/best' with yt_dlp.YoutubeDL(ydl_opts) as ydl: try: