mirror of
https://github.com/gordielachance/plugin.audio.subsonic
synced 2025-02-18 04:30:59 +01:00
Restore notes against TO FIX items
This commit is contained in:
parent
2b3789fe5c
commit
f5202f2229
9
main.py
9
main.py
@ -21,7 +21,7 @@ from collections import MutableMapping, namedtuple
|
||||
sys.path.append(xbmcvfs.translatePath(os.path.join(xbmcaddon.Addon("plugin.audio.subsonic").getAddonInfo("path"), "lib")))
|
||||
|
||||
|
||||
import libsonic#_extra #TO FIX - we should get rid of this and use only libsonic
|
||||
import libsonic#Removed libsonic_extra
|
||||
|
||||
from simpleplugin import Plugin
|
||||
from simpleplugin import Addon
|
||||
@ -47,21 +47,18 @@ def get_connection():
|
||||
global connection
|
||||
|
||||
if connection==None:
|
||||
|
||||
connected = False
|
||||
|
||||
# Create connection
|
||||
|
||||
try:
|
||||
connection = libsonic.Connection(
|
||||
baseUrl=Addon().get_setting('subsonic_url'),
|
||||
username=Addon().get_setting('username', convert=False),
|
||||
password=Addon().get_setting('password', convert=False),
|
||||
port=4040,
|
||||
port=4040,#TO FIX
|
||||
apiVersion=Addon().get_setting('apiversion'),
|
||||
insecure=Addon().get_setting('insecure') == 'true',
|
||||
legacyAuth=Addon().get_setting('legacyauth') == 'true',
|
||||
useGET=True,#Addon().get_setting('useget') == 'True',
|
||||
useGET=True,#Addon().get_setting('useget') == 'True', #TO FIX
|
||||
)
|
||||
connected = connection.ping()
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user