From 86b7cfcdb4083aa3fcdc6fb13d5b2e767cfdad13 Mon Sep 17 00:00:00 2001 From: quickmic Date: Tue, 23 Mar 2021 17:03:13 +0000 Subject: [PATCH] plugin.video.emby-next-gen-5.2.05-build 2 (ex1) --- addon.xml | 2 +- core/obj_ops.py | 3 ++- hooks/player.py | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/addon.xml b/addon.xml index 16a05d162..760717bdd 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/core/obj_ops.py b/core/obj_ops.py index f9f50dac7..4c146798c 100644 --- a/core/obj_ops.py +++ b/core/obj_ops.py @@ -196,7 +196,8 @@ def __init__(self, Utils): "Favorite": "UserData/IsFavorite", "PlayCount": "UserData/PlayCount", "DatePlayed": "UserData/LastPlayedDate", - "Played": "UserData/Played" + "Played": "UserData/Played", + "PresentationKey": "PresentationUniqueKey" }, "Artist": { "Id": "Id", diff --git a/hooks/player.py b/hooks/player.py index 4141b6dab..b787733f8 100644 --- a/hooks/player.py +++ b/hooks/player.py @@ -339,8 +339,10 @@ def run(self): EmbyDBItem = emby_dbT.get_kodiid(self.EmbyID) if EmbyDBItem: #Item not synced to Kodi DB - PresentationKey = EmbyDBItem[1].split("-") - self.Monitor.AddSkipItem(PresentationKey[0]) + if EmbyDBItem[1]: + PresentationKey = EmbyDBItem[1].split("-") + self.Monitor.AddSkipItem(PresentationKey[0]) + self.KodiID = str(EmbyDBItem[0]) else: self.Monitor.PlayerReloadIndex = "-1"