Restore notes against TO FIX items
This commit is contained in:
13
main.py
13
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")))
|
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 Plugin
|
||||||
from simpleplugin import Addon
|
from simpleplugin import Addon
|
||||||
@ -46,22 +46,19 @@ def popup(text, time=5000, image=None):
|
|||||||
def get_connection():
|
def get_connection():
|
||||||
global connection
|
global connection
|
||||||
|
|
||||||
if connection==None:
|
if connection==None:
|
||||||
|
connected = False
|
||||||
connected = False
|
|
||||||
|
|
||||||
# Create connection
|
# Create connection
|
||||||
|
|
||||||
try:
|
try:
|
||||||
connection = libsonic.Connection(
|
connection = libsonic.Connection(
|
||||||
baseUrl=Addon().get_setting('subsonic_url'),
|
baseUrl=Addon().get_setting('subsonic_url'),
|
||||||
username=Addon().get_setting('username', convert=False),
|
username=Addon().get_setting('username', convert=False),
|
||||||
password=Addon().get_setting('password', convert=False),
|
password=Addon().get_setting('password', convert=False),
|
||||||
port=4040,
|
port=4040,#TO FIX
|
||||||
apiVersion=Addon().get_setting('apiversion'),
|
apiVersion=Addon().get_setting('apiversion'),
|
||||||
insecure=Addon().get_setting('insecure') == 'true',
|
insecure=Addon().get_setting('insecure') == 'true',
|
||||||
legacyAuth=Addon().get_setting('legacyauth') == '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()
|
connected = connection.ping()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user