Fix video detection in monitor

This commit is contained in:
angelblue05 2017-10-04 17:34:25 -05:00
parent 6be4ffca3d
commit 2003367a21

View file

@ -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()