We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f9291 commit c6fd846Copy full SHA for c6fd846
Contents/Code/plex_api_helper.py
@@ -751,10 +751,6 @@ def get_user_info(token):
751
>>> get_user_info(token='...')
752
...
753
"""
754
- global plex
755
- if not plex:
756
- plex = setup_plexapi()
757
-
758
try:
759
return MyPlexAccount(token=token)
760
except Exception:
@@ -781,8 +777,6 @@ def is_server_owner(user):
781
777
>>> is_server_owner(user=...)
782
778
783
779
784
785
786
780
+ plex = setup_plexapi()
787
788
return plex.account().username in {user.email, user.username}
0 commit comments