Showing Premiering right now instead on not live

This commit is contained in:
arabcoders 2025-07-21 16:07:23 +03:00
parent e07751c41f
commit a58921dba5

View file

@ -511,7 +511,6 @@ class DownloadQueue(metaclass=Singleton):
) )
starts_in = starts_in + timedelta(minutes=5, seconds=dl.extras.get("duration", 0)) 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()}." dlInfo.info.error += f" Download will start at {starts_in.astimezone().isoformat()}."
nMessage = dlInfo.info.error.strip()
_requeue = False _requeue = False
except Exception as e: except Exception as e:
LOG.error(f"Failed to parse live_in date '{release_in}'. {e!s}") LOG.error(f"Failed to parse live_in date '{release_in}'. {e!s}")
@ -519,7 +518,7 @@ class DownloadQueue(metaclass=Singleton):
else: else:
dlInfo.info.error += f" Delaying download by '{300+dl.extras.get('duration',0)}' seconds." 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: if _requeue:
nEvent = Events.ITEM_ADDED nEvent = Events.ITEM_ADDED
@ -531,8 +530,7 @@ class DownloadQueue(metaclass=Singleton):
itemDownload = self.done.put(dlInfo) itemDownload = self.done.put(dlInfo)
nStore = "history" nStore = "history"
nEvent = Events.ITEM_MOVED nEvent = Events.ITEM_MOVED
nTitle = "Item Not Live" nTitle = "Premiering right now"
nMessage = f"Item '{dlInfo.info.title}' is not live."
await self._notify.emit(Events.LOG_INFO, title=nTitle, message=nMessage) await self._notify.emit(Events.LOG_INFO, title=nTitle, message=nMessage)
else: else:
nEvent = Events.ITEM_ADDED nEvent = Events.ITEM_ADDED