From a5562e896b7257b9617a61a8adaed4a04e759cdd Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Sun, 25 Oct 2015 02:13:13 +0200 Subject: [PATCH] fix crash on playback when music sync is not enabled --- resources/lib/KodiMonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/KodiMonitor.py b/resources/lib/KodiMonitor.py index a2216eb0..2d4dc943 100644 --- a/resources/lib/KodiMonitor.py +++ b/resources/lib/KodiMonitor.py @@ -52,7 +52,7 @@ class Kodi_Monitor( xbmc.Monitor ): id = jsondata.get("item").get("id") 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": connection = utils.KodiSQL('music')