1
0
mirror of https://github.com/gordielachance/plugin.audio.subsonic synced 2025-02-07 23:38:45 +01:00

Add support for path in server URL

This commit is contained in:
heru 2017-11-25 18:13:44 +01:00
parent 30d0e8641e
commit 313b413fc5

View File

@ -60,10 +60,11 @@ class SubsonicClient(libsonic.Connection):
# Pick a default port
host = "%s://%s" % (scheme, parts.hostname)
port = parts.port or {"http": 80, "https": 443}[scheme]
path = parts.path.rstrip('/') + '/rest'
# Invoke original constructor
super(SubsonicClient, self).__init__(
host, username, password, port=port, appName='Kodi', apiVersion=apiversion, insecure=insecure, legacyAuth=legacyauth)
host, username, password, port=port, serverPath=path, appName='Kodi', apiVersion=apiversion, insecure=insecure, legacyAuth=legacyauth)
def getIndexes(self, *args, **kwargs):
"""