Update playstate if owner plays for single user PMS

This commit is contained in:
tomkat83 2016-04-07 17:37:53 +02:00
parent be71912496
commit 2ec6bff388

View file

@ -1370,7 +1370,14 @@ class LibrarySync(Thread):
# Identify the user - same one as signed on with PKC? # Identify the user - same one as signed on with PKC?
# Skip update if neither session's username nor userid match # Skip update if neither session's username nor userid match
# (Owner sometime's returns id '1', not always) # (Owner sometime's returns id '1', not always)
if not (currSess['userId'] == utils.window('currUserId') if (utils.window('plex_token') == '' and
currSess['userId'] == '1'):
# PKC not signed in to plex.tv. Plus owner of PMS is
# playing (the '1').
# Hence must be us (since several users require plex.tv
# token for PKC)
pass
elif not (currSess['userId'] == utils.window('currUserId')
or or
currSess['username'] == utils.window('plex_username')): currSess['username'] == utils.window('plex_username')):
self.logMsg('Our username %s, userid %s did not match the ' self.logMsg('Our username %s, userid %s did not match the '