From a20747044c034dba5c6e15276d95a909cfe2fed7 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 25 Dec 2017 09:00:42 -0800 Subject: [PATCH] Fix sync ID --- plexpy/pmsconnect.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 96f5e224..4618d0ab 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1434,6 +1434,7 @@ class PmsConnect(object): transcode_decision = 'direct play' # Determine if a synced version is being played + sync_id = None if media_type not in ('photo', 'clip') and not session.getElementsByTagName('Session') \ and helpers.get_xml_attr(session, 'ratingKey').isdigit() and transcode_decision == 'direct play': plex_tv = plextv.PlexTV() @@ -1448,8 +1449,6 @@ class PmsConnect(object): synced_session_data = synced_xml_head[0].getElementsByTagName('Track')[0] elif synced_xml_head[0].getElementsByTagName('Video'): synced_session_data = synced_xml_head[0].getElementsByTagName('Video')[0] - else: - sync_id = None # Figure out which version is being played if sync_id: