From e801b69e4b9159f98424f32b0fa34df5af0eaf86 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 31 Dec 2017 01:07:10 -0600 Subject: [PATCH] Fix context menu --- resources/lib/context_entry.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/resources/lib/context_entry.py b/resources/lib/context_entry.py index 921e7915..8c514b30 100644 --- a/resources/lib/context_entry.py +++ b/resources/lib/context_entry.py @@ -41,14 +41,9 @@ class ContextMenu(object): self.emby = embyserver.Read_EmbyServer() - if xbmc.getCondVisibility('Window.IsVisible(10000)'): - # Widget listitems need a container id. - container = xbmc.getInfoLabel('System.CurrentControlID') - self.kodi_id = xbmc.getInfoLabel('Container(%s).ListItem.DBID' % container).decode('utf-8') - self.item_type = self._get_item_type('Container(%s).ListItem.DBTYPE' % container) - else: - self.kodi_id = xbmc.getInfoLabel('ListItem.DBID').decode('utf-8') - self.item_type = self._get_item_type('ListItem.DBTYPE') + container = xbmc.getInfoLabel('System.CurrentControlID') + self.kodi_id = xbmc.getInfoLabel('Container(%s).ListItem.DBID' % container).decode('utf-8') + self.item_type = self._get_item_type('Container(%s).ListItem.DBTYPE' % container) self.item_id = self._get_item_id(self.kodi_id, self.item_type) log.info("Found item_id: %s item_type: %s", self.item_id, self.item_type)