mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Add extra check (fix)
Called wrong class
This commit is contained in:
parent
8858860015
commit
d1054896bc
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class KodiMonitor(xbmc.Monitor):
|
||||||
try:
|
try:
|
||||||
kodi_id = None
|
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()
|
item = xbmc.Player().getVideoInfoTag()
|
||||||
kodi_id = item.getDbId()
|
kodi_id = item.getDbId()
|
||||||
item_type = item.getMediaType()
|
item_type = item.getMediaType()
|
||||||
|
|
Loading…
Reference in a new issue