fix crash on playback when music sync is not enabled

This commit is contained in:
marcelveldt 2015-10-25 02:13:13 +02:00
parent 4c43139765
commit a5562e896b

View file

@ -52,7 +52,7 @@ class Kodi_Monitor( xbmc.Monitor ):
id = jsondata.get("item").get("id") id = jsondata.get("item").get("id")
type = jsondata.get("item").get("type") type = jsondata.get("item").get("type")
if utils.settings('useDirectPaths')=='true' or (type == "song" and utils.settings('enableMusicSync') == "true"): if (utils.settings('useDirectPaths')=='true' and not type == "song") or (type == "song" and utils.settings('enableMusicSync') == "true"):
if type == "song": if type == "song":
connection = utils.KodiSQL('music') connection = utils.KodiSQL('music')