From 2003367a21babd0fb89b873a6f9fbccb27b16e18 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 4 Oct 2017 17:34:25 -0500 Subject: [PATCH] Fix video detection in monitor --- 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 8a89b34b..12163e20 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 xbmc.Player().isPlaying() and data['item']['type'] != "song": + if KODI >= 17 and xbmc.Player().isPlayingVideo(): item = xbmc.Player().getVideoInfoTag() kodi_id = item.getDbId() item_type = item.getMediaType()