Potential fix for #173

This commit is contained in:
ArabCoders 2025-01-18 17:47:55 +03:00
parent 44440aa546
commit 2fddadf363
2 changed files with 6 additions and 2 deletions

View file

@ -317,8 +317,11 @@ class Download:
except asyncio.CancelledError:
LOG.debug(f"Closing progress update for: {self.info._id=}.")
return
status = await self.update_task
try:
status = await self.update_task
except Exception as e:
LOG.error(f"Failed to get status update for: {self.info._id=}. {e}")
pass
if status is None or status.__class__ is Terminator:
LOG.debug(f"Closing progress update for: {self.info._id=}.")

View file

@ -230,6 +230,7 @@ class DownloadQueue:
already=None,
):
ytdlp_config = ytdlp_config if ytdlp_config else {}
folder = str(folder)
LOG.info(
f"Adding url '{url}' to folder '{folder}' with the following options 'Preset: {preset}' 'Naming: {output_template}', 'Cookies: {ytdlp_cookies}' 'YTConfig: {ytdlp_config}'."