add debug

This commit is contained in:
Antonio J. Delgado 2025-08-10 11:54:44 +03:00
parent 72f7072d1d
commit 77819462c1

View file

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