From c2dcd9893931f30b2a1007816dec3d77bc7b1e67 Mon Sep 17 00:00:00 2001 From: samwiseg00 Date: Wed, 15 Aug 2018 21:44:47 -0400 Subject: [PATCH] Verify that we are checking for a server --- plexpy/plextv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/plextv.py b/plexpy/plextv.py index 172019e2..699d455e 100644 --- a/plexpy/plextv.py +++ b/plexpy/plextv.py @@ -221,7 +221,8 @@ class PlexTV(object): return None for a in xml_head: - if helpers.get_xml_attr(a, 'clientIdentifier') == plexpy.CONFIG.PMS_IDENTIFIER: + if helpers.get_xml_attr(a, 'clientIdentifier') == plexpy.CONFIG.PMS_IDENTIFIER \ + and 'server' in helpers.get_xml_attr(a, 'provides'): server_token = helpers.get_xml_attr(a, 'accessToken') break