This commit is contained in:
Antonio J. Delgado 2025-07-21 08:40:04 +03:00
parent d9fd4400cd
commit d08c662cbe

View file

@ -397,7 +397,7 @@ 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."
"Requested format is not available, trying best format."
)
ydl_opts['format'] = 'bestvideo+bestaudio[ext=m4a]/best'
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
@ -483,7 +483,9 @@ class GetYoutubeVideos:
if data['status'] == 'finished':
self._process_download(data)
elif data['status'] == 'downloading':
downloading = True
self._log.debug(
"Still downloading..."
)
else:
self._log.debug(
"Progress hook got data['status']=%s instead of 'finished'",