mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
parent
b3aca0542e
commit
c46a64e579
1 changed files with 10 additions and 4 deletions
|
@ -92,6 +92,12 @@ class KodiMonitor(xbmc.Monitor):
|
|||
def _on_play_(self, data):
|
||||
# Set up report progress for emby playback
|
||||
try:
|
||||
if KODI >= 17:
|
||||
item = xbmc.Player().getVideoInfoTag()
|
||||
kodi_id = item.getDbId()
|
||||
item_type = item.getMediaType()
|
||||
log.info("kodi_id: %s item_type: %s", kodi_id, item_type)
|
||||
else:
|
||||
item = data['item']
|
||||
kodi_id = item['id']
|
||||
item_type = item['type']
|
||||
|
|
Loading…
Reference in a new issue