Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix: migrate code to 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zdimension committed Dec 8, 2023
1 parent f6de999 commit 68c5578
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Contents/Code/plex_api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,10 +751,6 @@ def get_user_info(token):
>>> get_user_info(token='...')
...
"""
global plex
if not plex:
plex = setup_plexapi()

try:
return MyPlexAccount(token=token)
except Exception:
Expand All @@ -781,8 +777,6 @@ def is_server_owner(user):
>>> is_server_owner(user=...)
...
"""
global plex
if not plex:
plex = setup_plexapi()
plex = setup_plexapi()

return plex.account().username in {user.email, user.username}

0 comments on commit 68c5578

Please sign in to comment.