env and override correction
This commit is contained in:
parent
fd893af4e9
commit
8c910be961
@ -55,14 +55,11 @@ import argparse
|
|||||||
import os
|
import os
|
||||||
from plexapi.server import PlexServer
|
from plexapi.server import PlexServer
|
||||||
|
|
||||||
|
|
||||||
PLEX_FALLBACK_URL = 'http://127.0.0.1:32400'
|
|
||||||
PLEX_OVERRIDE_URL = ''
|
PLEX_OVERRIDE_URL = ''
|
||||||
PLEX_URL = PLEX_OVERRIDE_URL or os.getenv('PLEX_URL', PLEX_FALLBACK_URL)
|
PLEX_URL = PLEX_OVERRIDE_URL or os.getenv('PLEX_URL')
|
||||||
|
|
||||||
PLEX_FALLBACK_TOKEN = ''
|
|
||||||
PLEX_OVERRIDE_TOKEN = ''
|
PLEX_OVERRIDE_TOKEN = ''
|
||||||
PLEX_TOKEN = PLEX_OVERRIDE_TOKEN or os.getenv('PLEX_TOKEN', PLEX_FALLBACK_TOKEN)
|
PLEX_TOKEN = PLEX_OVERRIDE_TOKEN or os.getenv('PLEX_TOKEN')
|
||||||
|
|
||||||
|
|
||||||
sess = requests.Session()
|
sess = requests.Session()
|
||||||
|
Loading…
Reference in New Issue
Block a user