Add default values for session bandwidth and location
This commit is contained in:
@@ -1297,7 +1297,10 @@ class PmsConnect(object):
|
|||||||
'location': helpers.get_xml_attr(session_info, 'location')
|
'location': helpers.get_xml_attr(session_info, 'location')
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
session_details = {'session_id': ''}
|
session_details = {'session_id': '',
|
||||||
|
'bandwidth': '',
|
||||||
|
'location': 'Unknown'
|
||||||
|
}
|
||||||
|
|
||||||
# Get the transcode details
|
# Get the transcode details
|
||||||
if session.getElementsByTagName('TranscodeSession'):
|
if session.getElementsByTagName('TranscodeSession'):
|
||||||
|
Reference in New Issue
Block a user