Merge pull request #38 from ArabCoders/dev
sometimes release_timestamp is null
This commit is contained in:
commit
d9caf6f671
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue