From 4d7af7912d3c36cb031e44debdda379c47ddb668 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 16 Sep 2016 17:47:09 +0200 Subject: [PATCH] Use file settings instead of window settings --- resources/lib/librarysync.py | 4 ++-- resources/lib/userclient.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 3be231bd..d5ae345b 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1535,7 +1535,7 @@ class LibrarySync(Thread): sessionKey = item.get('sessionKey') # Do we already have a sessionKey stored? if sessionKey not in self.sessionKeys: - if window('plex_serverowned') == 'false': + if settings('plex_serverowned') == 'false': # Not our PMS, we are not authorized to get the # sessions # On the bright side, it must be us playing :-) @@ -1554,7 +1554,7 @@ class LibrarySync(Thread): continue currSess = self.sessionKeys[sessionKey] - if window('plex_serverowned') != 'false': + if settings('plex_serverowned') != 'false': # Identify the user - same one as signed on with PKC? Skip # update if neither session's username nor userid match # (Owner sometime's returns id '1', not always) diff --git a/resources/lib/userclient.py b/resources/lib/userclient.py index 308dc06e..78aff86b 100644 --- a/resources/lib/userclient.py +++ b/resources/lib/userclient.py @@ -174,7 +174,6 @@ class UserClient(threading.Thread): window('plex_machineIdentifier', value=self.machineIdentifier) window('plex_servername', value=self.servername) window('plex_authenticated', value='true') - window('plex_serverowned', value=settings('plex_serverowned')) window('useDirectPaths', value='true' if settings('useDirectPaths') == "1" else 'false')