This commit is contained in:
blacktwin 2024-01-06 11:49:58 -05:00
parent 5bcdf4fe43
commit e097a07ca5

View File

@ -28,8 +28,12 @@ library_name = ['Movies', 'TV Shows'] # Your library names
PLEX_URL = ''
PLEX_TOKEN = ''
PLEX_URL = CONFIG.data['auth'].get('server_baseurl', PLEX_URL)
PLEX_TOKEN = CONFIG.data['auth'].get('server_token', PLEX_TOKEN)
if not PLEX_URL:
PLEX_URL = CONFIG.data['auth'].get('server_baseurl', '')
if not PLEX_TOKEN:
PLEX_TOKEN = CONFIG.data['auth'].get('server_token', '')
sess = requests.Session()
# Ignore verifying the SSL certificate