Add extra check (new bug in krypton??)

Something in Kodi is triggering on play while hovering widgets.
This commit is contained in:
angelblue05 2017-08-08 21:17:28 -05:00
parent 7e38a743d7
commit 8858860015

View file

@ -94,7 +94,7 @@ class KodiMonitor(xbmc.Monitor):
try: try:
kodi_id = None 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() item = xbmc.Player().getVideoInfoTag()
kodi_id = item.getDbId() kodi_id = item.getDbId()
item_type = item.getMediaType() item_type = item.getMediaType()