Fix more AttributeErrors
This commit is contained in:
parent
09f0492fa4
commit
81de319715
1 changed files with 5 additions and 5 deletions
|
@ -287,12 +287,12 @@ def process_playing(data):
|
||||||
# Hence must be us (since several users require plex.tv
|
# Hence must be us (since several users require plex.tv
|
||||||
# token for PKC)
|
# token for PKC)
|
||||||
pass
|
pass
|
||||||
elif not (session['userId'] == app.CONN.plex_user_id or
|
elif not (session['userId'] == app.ACCOUNT.plex_user_id or
|
||||||
session['username'] == app.CONN.plex_username):
|
session['username'] == app.ACCOUNT.plex_username):
|
||||||
LOG.debug('Our username %s, userid %s did not match '
|
LOG.debug('Our username %s, userid %s did not match '
|
||||||
'the session username %s with userid %s',
|
'the session username %s with userid %s',
|
||||||
app.CONN.plex_username,
|
app.ACCOUNT.plex_username,
|
||||||
app.CONN.plex_user_id,
|
app.ACCOUNT.plex_user_id,
|
||||||
session['username'],
|
session['username'],
|
||||||
session['userId'])
|
session['userId'])
|
||||||
continue
|
continue
|
||||||
|
@ -334,7 +334,7 @@ def process_playing(data):
|
||||||
mark_played = False
|
mark_played = False
|
||||||
LOG.debug('Update playstate for user %s for %s with plex id %s to '
|
LOG.debug('Update playstate for user %s for %s with plex id %s to '
|
||||||
'viewCount %s, resume %s, mark_played %s',
|
'viewCount %s, resume %s, mark_played %s',
|
||||||
app.CONN.plex_username, session['kodi_type'], plex_id,
|
app.ACCOUNT.plex_username, session['kodi_type'], plex_id,
|
||||||
session['viewCount'], resume, mark_played)
|
session['viewCount'], resume, mark_played)
|
||||||
func = itemtypes.ITEMTYPE_FROM_KODITYPE[session['kodi_type']]
|
func = itemtypes.ITEMTYPE_FROM_KODITYPE[session['kodi_type']]
|
||||||
with func(None) as fkt:
|
with func(None) as fkt:
|
||||||
|
|
Loading…
Reference in a new issue