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__(
|
||||
self, url, username, password, app_name, legacy_auth, api_version
|
||||
):
|
||||
url = url.rstrip('/')
|
||||
parsed = urlparse(url)
|
||||
self.port = (
|
||||
parsed.port
|
||||
|
|
Loading…
Add table
Reference in a new issue