From f68b4c88205375d77f664f2df2e29043ff07dddc Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 20 Nov 2018 17:24:47 +0100 Subject: [PATCH] Fix AttributeError --- resources/lib/plex_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/plex_api.py b/resources/lib/plex_api.py index 35b38a74..1f1bb190 100644 --- a/resources/lib/plex_api.py +++ b/resources/lib/plex_api.py @@ -221,7 +221,7 @@ class API(object): # max width/height supported by plex image transcoder is 1920x1080 path = app.CONN.server + PF.transcode_image_path( self.item[0][0].get('key'), - app.CONN.pms_token, + app.ACCOUNT.pms_token, "%s%s" % (app.CONN.server, self.item[0][0].get('key')), 1920, 1080) @@ -684,12 +684,12 @@ class API(object): url may or may not already contain a '?' """ - if not app.CONN.pms_token: + if not app.ACCOUNT.pms_token: return url if '?' not in url: - url = "%s?X-Plex-Token=%s" % (url, app.CONN.pms_token) + url = "%s?X-Plex-Token=%s" % (url, app.ACCOUNT.pms_token) else: - url = "%s&X-Plex-Token=%s" % (url, app.CONN.pms_token) + url = "%s&X-Plex-Token=%s" % (url, app.ACCOUNT.pms_token) return url def item_id(self):