From 48152c9ba34b6b28384e64085efcb4993d4ea153 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 19 Aug 2017 21:23:41 -0700 Subject: [PATCH] Fix stream width and height info --- plexpy/activity_processor.py | 4 ++-- plexpy/pmsconnect.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plexpy/activity_processor.py b/plexpy/activity_processor.py index a7482c81..4b1020e9 100644 --- a/plexpy/activity_processor.py +++ b/plexpy/activity_processor.py @@ -81,8 +81,8 @@ class ActivityProcessor(object): 'transcode_video_codec': session.get('transcode_video_codec', ''), 'transcode_audio_codec': session.get('transcode_audio_codec', ''), 'transcode_audio_channels': session.get('transcode_audio_channels', ''), - 'transcode_width': session.get('transcode_width', ''), - 'transcode_height': session.get('transcode_height', ''), + 'transcode_width': session.get('stream_video_width', ''), + 'transcode_height': session.get('stream_video_height', ''), 'stopped': None } diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 2fd09a7e..b2f7d83f 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1323,8 +1323,8 @@ class PmsConnect(object): 'transcode_audio_channels': helpers.get_xml_attr(transcode_info, 'audioChannels'), 'transcode_audio_codec': helpers.get_xml_attr(transcode_info, 'audioCodec'), 'transcode_video_codec': helpers.get_xml_attr(transcode_info, 'videoCodec'), - 'transcode_width': helpers.get_xml_attr(transcode_info, 'width'), - 'transcode_height': helpers.get_xml_attr(transcode_info, 'height'), + 'transcode_width': helpers.get_xml_attr(transcode_info, 'width'), # Blank but keep for backwards compatibility + 'transcode_height': helpers.get_xml_attr(transcode_info, 'height'), # Blank but keep backwards compatibility 'transcode_container': helpers.get_xml_attr(transcode_info, 'container'), 'transcode_protocol': helpers.get_xml_attr(transcode_info, 'protocol'), 'transcode_hardware': transcode_hardware,