add debug
This commit is contained in:
parent
72f7072d1d
commit
77819462c1
1 changed files with 4 additions and 1 deletions
|
@ -378,8 +378,11 @@ class GetYoutubeVideos:
|
|||
if self.selected_proxy != '':
|
||||
ydl_opts['proxy'] = self.selected_proxy
|
||||
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
||||
result = 'pending'
|
||||
result = 'starting'
|
||||
while result != 'downloaded' and result != 'error':
|
||||
self._log.debug(
|
||||
f"Download status: {result}"
|
||||
)
|
||||
try:
|
||||
uri=f"https://www.youtube.com/watch?v={video_id}"
|
||||
return_code = ydl.download(uri)
|
||||
|
|
Loading…
Reference in a new issue