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()
|
self.emby = embyserver.Read_EmbyServer()
|
||||||
|
|
||||||
if xbmc.getCondVisibility('Window.IsVisible(10000)'):
|
container = xbmc.getInfoLabel('System.CurrentControlID')
|
||||||
# Widget listitems need a container id.
|
self.kodi_id = xbmc.getInfoLabel('Container(%s).ListItem.DBID' % container).decode('utf-8')
|
||||||
container = xbmc.getInfoLabel('System.CurrentControlID')
|
self.item_type = self._get_item_type('Container(%s).ListItem.DBTYPE' % container)
|
||||||
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')
|
|
||||||
|
|
||||||
self.item_id = self._get_item_id(self.kodi_id, self.item_type)
|
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)
|
log.info("Found item_id: %s item_type: %s", self.item_id, self.item_type)
|
||||||
|
|
Loading…
Reference in a new issue