add log info

This commit is contained in:
Antonio J. Delgado 2025-06-20 23:54:42 +02:00
parent c5ede0c21f
commit fffcc743af

View file

@ -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: