From 499c1e0e5b4f42ab71785aaada8da96239b886e0 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sat, 6 Jan 2024 22:36:12 +0300 Subject: [PATCH] Fix which queue gets the post-live mode videos. --- app/DownloadQueue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/DownloadQueue.py b/app/DownloadQueue.py index a04963f4..ad118220 100644 --- a/app/DownloadQueue.py +++ b/app/DownloadQueue.py @@ -156,15 +156,18 @@ class DownloadQueue: if dlInfo.info.live_in: dlInfo.info.status = 'not_live' itemDownload = self.done.put(dlInfo) + NotifiyEvent = 'completed' elif self.config.allow_manifestless is False and 'live_status' in entry and 'post_live' == entry.get('live_status'): dlInfo.info.status = 'error' dlInfo.info.error = 'Video is in Post-Live Manifestless mode.' itemDownload = self.done.put(dlInfo) + NotifiyEvent = 'completed' else: + NotifiyEvent = 'added' itemDownload = self.queue.put(dlInfo) self.event.set() - await self.notifier.emit('completed' if itemDownload.info.live_in else 'added', itemDownload.info) + await self.notifier.emit(NotifiyEvent, itemDownload.info) return { 'status': 'ok'