Check if stream details are None
This commit is contained in:
parent
12f8aad9fd
commit
7eb6cb0b86
1 changed files with 4 additions and 4 deletions
|
@ -64,11 +64,11 @@ def process_running_channel(database, scheduler, stream_id, stream_name, stream_
|
||||||
logger_job.warning(f'{stream_id} ({stream_name}) found. {api_settings} ')
|
logger_job.warning(f'{stream_id} ({stream_name}) found. {api_settings} ')
|
||||||
|
|
||||||
# Check whether we have stream details
|
# Check whether we have stream details
|
||||||
try:
|
stream_details = api_settings.get('details')
|
||||||
stream_details = api_settings.get('details')
|
if stream_details is None:
|
||||||
logger_job.warning(f'Details found: {stream_details}')
|
|
||||||
except Exception as e:
|
|
||||||
stream_details = ""
|
stream_details = ""
|
||||||
|
else:
|
||||||
|
logger_job.warning(f'Details found: {stream_details}')
|
||||||
|
|
||||||
if stream_start == "now":
|
if stream_start == "now":
|
||||||
# Check if the stream_hls_url returns 200
|
# Check if the stream_hls_url returns 200
|
||||||
|
|
Loading…
Add table
Reference in a new issue