Docker forces to set username/pw/servername even if token/baseurl was specified as docker vars
doctarrwho opened this issue · comments
This code forces the failure when PLEX_TOKEN was specified without PLEX_USERNAME
if not os.path.isfile('.env') and not (PLEX_USERNAME or PLEX_PASSWORD or PLEX_SERVER_NAME):
With the token option available, it should be:
if not os.path.isfile('.env') and not (PLEX_USERNAME or PLEX_PASSWORD or PLEX_SERVER_NAME) and not (PLEX_TOKEN or PLEX_BASE_URL):
@doctarrwho Thank you for that catch.
Master has been updated with the suggested fix.