Check if stream details are None

This commit is contained in:
deflax 2025-03-06 00:08:04 +00:00
parent 12f8aad9fd
commit 7eb6cb0b86

View file

@ -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} ')
# Check whether we have stream details
try:
stream_details = api_settings.get('details')
logger_job.warning(f'Details found: {stream_details}')
except Exception as e:
stream_details = api_settings.get('details')
if stream_details is None:
stream_details = ""
else:
logger_job.warning(f'Details found: {stream_details}')
if stream_start == "now":
# Check if the stream_hls_url returns 200