Added re-authentication after expiry to jf_api

This commit is contained in:
2020-04-26 19:44:31 +01:00
parent 5b767da91f
commit 3499843878
2 changed files with 18 additions and 5 deletions

View File

@@ -68,7 +68,10 @@ auth = HTTPBasicAuth()
accounts = {}
if not config.getboolean('ui', 'jellyfin_login'):
if config.getboolean('ui', 'jellyfin_login'):
log.debug('Using jellyfin for admin authentication')
else:
log.debug('Using configured login details for admin authentication')
accounts['adminAccount'] = Account(config['ui']['username'],
config['ui']['password'])