mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
rstrip baseurl for plex servers, new users seems
add / to the end.
This commit is contained in:
parent
15827022f3
commit
22d1c2011c
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ class PlexServer(PlexObject):
|
|||
|
||||
def __init__(self, baseurl=None, token=None, session=None, timeout=None):
|
||||
self._baseurl = baseurl or CONFIG.get('auth.server_baseurl', 'http://localhost:32400')
|
||||
self._baseurl = self._baseurl.rstrip('/')
|
||||
self._token = logfilter.add_secret(token or CONFIG.get('auth.server_token'))
|
||||
self._showSecrets = CONFIG.get('log.show_secrets', '').lower() == 'true'
|
||||
self._session = session or requests.Session()
|
||||
|
|
Loading…
Reference in a new issue