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"