mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Fix context menu
This commit is contained in:
parent
22a2de90c8
commit
e801b69e4b
1 changed files with 3 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue