fix crash on playback when music sync is not enabled
This commit is contained in:
parent
4c43139765
commit
a5562e896b
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue