From 3b8fe142007eaca0101a2657145fb3155f754c1b Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sun, 3 Dec 2023 00:09:02 +0300 Subject: [PATCH] sometimes release_timestamp is null --- app/src/DownloadQueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/DownloadQueue.py b/app/src/DownloadQueue.py index 9ba7fb50..07bbe962 100644 --- a/app/src/DownloadQueue.py +++ b/app/src/DownloadQueue.py @@ -56,7 +56,7 @@ class DownloadQueue: error: str = None live_in: str = None - if 'live_status' in entry and 'release_timestamp' in entry and entry.get('live_status') == 'is_upcoming': + if 'live_status' in entry and 'release_timestamp' in entry and entry.get('live_status') == 'is_upcoming' and entry.get('release_timestamp'): dt_ts = datetime.fromtimestamp( entry.get('release_timestamp'), tz=timezone.utc).strftime('%Y-%m-%d %H:%M:%S %z') error = f"Live stream is scheduled to start at {dt_ts}"