add log info
This commit is contained in:
parent
c5ede0c21f
commit
fffcc743af
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue