From 6dd7e8445a4a49113639eb487de147c71d6a2a9d Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 13 Sep 2017 18:54:03 -0700 Subject: [PATCH] Add default values for session bandwidth and location --- plexpy/pmsconnect.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index b2f7d83f..0ae745ef 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1297,7 +1297,10 @@ class PmsConnect(object): 'location': helpers.get_xml_attr(session_info, 'location') } else: - session_details = {'session_id': ''} + session_details = {'session_id': '', + 'bandwidth': '', + 'location': 'Unknown' + } # Get the transcode details if session.getElementsByTagName('TranscodeSession'):