mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Fix a9169d2
This commit is contained in:
parent
a9169d2b53
commit
18a38b16b1
1 changed files with 4 additions and 2 deletions
|
@ -2030,11 +2030,13 @@ class PmsConnect(object):
|
|||
|
||||
if session_key:
|
||||
session = ap.get_session_by_key(session_key=session_key)
|
||||
session_id = session['session_id'] if session and not session_id else None
|
||||
if session and not session_id:
|
||||
session_id = session['session_id']
|
||||
|
||||
elif session_id:
|
||||
session = ap.get_session_by_id(session_id=session_id)
|
||||
session_key = session['session_key'] if session and not session_key else None
|
||||
if session and not session_key:
|
||||
session_key = session['session_key']
|
||||
|
||||
else:
|
||||
session = session_key = session_id = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue