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}"