add legacyauth setting

cloned from
https://github.com/lrusak/plugin.audio.subsonic/commit/ad4fc0d0be33ea827
5a73e9a9d10bc6a5f772dba
This commit is contained in:
gordielachance
2016-10-01 00:56:59 +02:00
parent b35dfd278d
commit 44418a384e
3 changed files with 6 additions and 3 deletions

View File

@ -32,6 +32,8 @@ class Plugin(object):
self.password = addon.getSetting("password")
self.apiversion = addon.getSetting("apiversion")
self.insecure = addon.getSetting("insecure") == "true"
self.legacyauth = addon.getSetting("legacyauth") == "true"
self.albums_per_page = int(addon.getSetting("albums_per_page"))
self.tracks_per_page = int(addon.getSetting("tracks_per_page"))
@ -41,7 +43,7 @@ class Plugin(object):
# Create connection
self.connection = libsonic_extra.SubsonicClient(
self.url, self.username, self.password, self.apiversion, self.insecure)
self.url, self.username, self.password, self.apiversion, self.insecure, self.legacyauth)
def build_url(self, query):
"""