From 8858860015364e09b645c2c1bb120622881fcd1e Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 8 Aug 2017 21:17:28 -0500 Subject: [PATCH] Add extra check (new bug in krypton??) Something in Kodi is triggering on play while hovering widgets. --- 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 39c5a04f..d88b0afc 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -94,7 +94,7 @@ class KodiMonitor(xbmc.Monitor): try: kodi_id = None - if KODI >= 17 and data['item']['type'] != "song": + if KODI >= 17 and self.isPlaying() and data['item']['type'] != "song": item = xbmc.Player().getVideoInfoTag() kodi_id = item.getDbId() item_type = item.getMediaType()