From d1054896bc280b8167a70a02517c7f9d52a9c54f Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 9 Aug 2017 05:06:46 -0500 Subject: [PATCH] Add extra check (fix) Called wrong class --- 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 d88b0afc..8a89b34b 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 self.isPlaying() and data['item']['type'] != "song": + if KODI >= 17 and xbmc.Player().isPlaying() and data['item']['type'] != "song": item = xbmc.Player().getVideoInfoTag() kodi_id = item.getDbId() item_type = item.getMediaType()