From 2fddadf363312404303fb06c837cf2633ecae99c Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sat, 18 Jan 2025 17:47:55 +0300 Subject: [PATCH] Potential fix for #173 --- app/library/Download.py | 7 +++++-- app/library/DownloadQueue.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/library/Download.py b/app/library/Download.py index 8d3ae989..8786e95d 100644 --- a/app/library/Download.py +++ b/app/library/Download.py @@ -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=}.") diff --git a/app/library/DownloadQueue.py b/app/library/DownloadQueue.py index d34d50fe..323aec9e 100644 --- a/app/library/DownloadQueue.py +++ b/app/library/DownloadQueue.py @@ -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}'."