From 5147baab05818a4f3ac5866a8dc337cfc374a85d Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 31 May 2017 19:50:44 -0700 Subject: [PATCH] Temporary fix for current activity resolution on PMS 1.7.x --- plexpy/pmsconnect.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index d1c37f19..71d06ac9 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1186,8 +1186,8 @@ class PmsConnect(object): transcode_audio_codec = helpers.get_xml_attr(transcode_session, 'audioCodec') video_decision = helpers.get_xml_attr(transcode_session, 'videoDecision') transcode_video_codec = helpers.get_xml_attr(transcode_session, 'videoCodec') - transcode_width = helpers.get_xml_attr(transcode_session, 'width') - transcode_height = helpers.get_xml_attr(transcode_session, 'height') + transcode_width = helpers.get_xml_attr(transcode_session, 'width') or width + transcode_height = helpers.get_xml_attr(transcode_session, 'height') or height transcode_container = helpers.get_xml_attr(transcode_session, 'container') transcode_protocol = helpers.get_xml_attr(transcode_session, 'protocol') else: @@ -1443,8 +1443,8 @@ class PmsConnect(object): transcode_speed = helpers.get_xml_attr(transcode_session, 'speed') video_decision = helpers.get_xml_attr(transcode_session, 'videoDecision') transcode_video_codec = helpers.get_xml_attr(transcode_session, 'videoCodec') - transcode_width = helpers.get_xml_attr(transcode_session, 'width') - transcode_height = helpers.get_xml_attr(transcode_session, 'height') + transcode_width = helpers.get_xml_attr(transcode_session, 'width') or width + transcode_height = helpers.get_xml_attr(transcode_session, 'height') or height transcode_container = helpers.get_xml_attr(transcode_session, 'container') transcode_protocol = helpers.get_xml_attr(transcode_session, 'protocol') else: