mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix watched bug
Getting the playback info from the video dialog as playback is started seems to fail more often than not (returns kodi_id = -1, item_type = None) when the data passed by Kodi contains the right info.
This commit is contained in:
parent
5322058652
commit
b3aca0542e
1 changed files with 4 additions and 10 deletions
|
@ -92,12 +92,6 @@ class KodiMonitor(xbmc.Monitor):
|
||||||
def _on_play_(self, data):
|
def _on_play_(self, data):
|
||||||
# Set up report progress for emby playback
|
# Set up report progress for emby playback
|
||||||
try:
|
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']
|
item = data['item']
|
||||||
kodi_id = item['id']
|
kodi_id = item['id']
|
||||||
item_type = item['type']
|
item_type = item['type']
|
||||||
|
|
Loading…
Reference in a new issue