From a58921dba57723069342c57e5cf9453ebe7236f1 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Mon, 21 Jul 2025 16:07:23 +0300 Subject: [PATCH] Showing Premiering right now instead on not live --- app/library/DownloadQueue.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/library/DownloadQueue.py b/app/library/DownloadQueue.py index 086dbcd1..5b59d544 100644 --- a/app/library/DownloadQueue.py +++ b/app/library/DownloadQueue.py @@ -511,7 +511,6 @@ class DownloadQueue(metaclass=Singleton): ) starts_in = starts_in + timedelta(minutes=5, seconds=dl.extras.get("duration", 0)) dlInfo.info.error += f" Download will start at {starts_in.astimezone().isoformat()}." - nMessage = dlInfo.info.error.strip() _requeue = False except Exception as e: LOG.error(f"Failed to parse live_in date '{release_in}'. {e!s}") @@ -519,7 +518,7 @@ class DownloadQueue(metaclass=Singleton): else: dlInfo.info.error += f" Delaying download by '{300+dl.extras.get('duration',0)}' seconds." - nMessage = dlInfo.info.error.strip() + nMessage = f"'{dl.info.title}': '{dlInfo.info.error.strip()}'." if _requeue: nEvent = Events.ITEM_ADDED @@ -531,8 +530,7 @@ class DownloadQueue(metaclass=Singleton): itemDownload = self.done.put(dlInfo) nStore = "history" nEvent = Events.ITEM_MOVED - nTitle = "Item Not Live" - nMessage = f"Item '{dlInfo.info.title}' is not live." + nTitle = "Premiering right now" await self._notify.emit(Events.LOG_INFO, title=nTitle, message=nMessage) else: nEvent = Events.ITEM_ADDED