mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
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")
|
||||
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')
|
||||
|
|
Loading…
Reference in a new issue