From 18526bad3894ebc9fa85a555fb4ba74a705a12f4 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sat, 3 Feb 2024 16:18:55 +0300 Subject: [PATCH] Fixes for is_live flag. --- app/DownloadQueue.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/DownloadQueue.py b/app/DownloadQueue.py index 486442a2..e04f1cfc 100644 --- a/app/DownloadQueue.py +++ b/app/DownloadQueue.py @@ -118,9 +118,7 @@ class DownloadQueue: except KeyError: pass - is_manifestless = 'post_live' == entry.get('live_status') if 'live_status' in entry else None - - options.update({'is_manifestless': is_manifestless}) + options.update({'is_manifestless': 'post_live' == entry.get('live_status', None)}) dl = ItemDTO( id=entry.get('id'), @@ -134,9 +132,9 @@ class DownloadQueue: output_template=output_template if output_template else self.config.output_template, datetime=formatdate(time.time()), error=error, - is_live=entry.get('is_live', None) or live_in is not None, + is_live=entry.get('is_live', None) or 'is_live' == entry.get('live_status', None) or live_in, live_in=live_in, - options=options + options=options, ) try: