fix lazy
This commit is contained in:
parent
d9fd4400cd
commit
d08c662cbe
1 changed files with 4 additions and 2 deletions
|
@ -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'",
|
||||
|
|
Loading…
Reference in a new issue