Fix loading playlists for user not on Plex server

This commit is contained in:
JonnyWong16 2020-10-02 13:05:14 -07:00
parent ea9904bd56
commit be9f06795d
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -238,6 +238,9 @@ def get_playlists(section_id=None, user_id=None):
else:
plex_token = session.get_session_user_token()
if not plex_token:
return []
plex = Plex(plexpy.CONFIG.PMS_URL, plex_token)
if user_id: