update getting url and token variables
This commit is contained in:
parent
44c2fa8858
commit
d1a16f2bcd
@ -57,17 +57,12 @@ from plexapi.server import PlexServer
|
||||
|
||||
|
||||
PLEX_FALLBACK_URL = 'http://127.0.0.1:32400'
|
||||
PLEX_FALLBACK_TOKEN = ''
|
||||
PLEX_URL = os.getenv('PLEX_URL', PLEX_FALLBACK_URL)
|
||||
PLEX_TOKEN = os.getenv('PLEX_TOKEN', PLEX_FALLBACK_TOKEN)
|
||||
|
||||
PLEX_OVERRIDE_URL = ''
|
||||
PLEX_OVERRIDE_TOKEN = ''
|
||||
PLEX_URL = PLEX_OVERRIDE_URL or os.getenv('PLEX_URL', PLEX_FALLBACK_URL)
|
||||
|
||||
if PLEX_OVERRIDE_URL:
|
||||
PLEX_URL = PLEX_OVERRIDE_URL
|
||||
if PLEX_OVERRIDE_TOKEN:
|
||||
PLEX_TOKEN = PLEX_OVERRIDE_TOKEN
|
||||
PLEX_FALLBACK_TOKEN = ''
|
||||
PLEX_OVERRIDE_TOKEN = ''
|
||||
PLEX_TOKEN = PLEX_OVERRIDE_URL or os.getenv('PLEX_TOKEN', PLEX_FALLBACK_TOKEN)
|
||||
|
||||
|
||||
sess = requests.Session()
|
||||
|
Loading…
Reference in New Issue
Block a user