add insecure setting

cloned from
https://github.com/lrusak/plugin.audio.subsonic/commit/5c5040a7d92a8e88c
8e371140a0fa2c6e606d0d5
This commit is contained in:
gordielachance
2016-10-01 00:33:03 +02:00
parent 6b4807bbf5
commit 47d0fcbe77
3 changed files with 5 additions and 3 deletions

View File

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