Gracefully handle URLs with trailing slash
This commit is contained in:
parent
4bc641e95a
commit
dc7bc85d5b
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ class SubsonicApi:
|
||||||
def __init__(
|
def __init__(
|
||||||
self, url, username, password, app_name, legacy_auth, api_version
|
self, url, username, password, app_name, legacy_auth, api_version
|
||||||
):
|
):
|
||||||
|
url = url.rstrip('/')
|
||||||
parsed = urlparse(url)
|
parsed = urlparse(url)
|
||||||
self.port = (
|
self.port = (
|
||||||
parsed.port
|
parsed.port
|
||||||
|
|
Loading…
Add table
Reference in a new issue