mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 17:22:56 -07:00
Fix loading playlists for user not on Plex server
This commit is contained in:
parent
ea9904bd56
commit
be9f06795d
1 changed files with 3 additions and 0 deletions
|
@ -238,6 +238,9 @@ def get_playlists(section_id=None, user_id=None):
|
||||||
else:
|
else:
|
||||||
plex_token = session.get_session_user_token()
|
plex_token = session.get_session_user_token()
|
||||||
|
|
||||||
|
if not plex_token:
|
||||||
|
return []
|
||||||
|
|
||||||
plex = Plex(plexpy.CONFIG.PMS_URL, plex_token)
|
plex = Plex(plexpy.CONFIG.PMS_URL, plex_token)
|
||||||
|
|
||||||
if user_id:
|
if user_id:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue