fix menu visibility

This commit is contained in:
fatshotty
2021-04-19 21:12:41 +02:00
parent 67a3335346
commit 8ce63d4e46
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -9,6 +9,8 @@ sys.path.insert(0, librerias)
from core import tmdb
from core.item import Item
__addon__ = config.get_addon_core()
addon_name = __addon__.getAddonInfo('name')
def execute_search():
"""
@@ -25,8 +27,6 @@ def execute_search():
# ADDON: maybe can we know if the current windows is related to a specific addon?
# we could skip the ContextMenu if we already are in KOD's window
#
# addon = xbmc.getInfoLabel('ListItem.Property(Addon.ID)')
tmdbid = xbmc.getInfoLabel('ListItem.Property(tmdb_id)')
mediatype = xbmc.getInfoLabel('ListItem.DBTYPE')
@@ -34,6 +34,7 @@ def execute_search():
year = xbmc.getInfoLabel('ListItem.Year')
imdb = xbmc.getInfoLabel('ListItem.IMDBNumber')
logstr = "Selected ListItem is: 'IMDB: {}' - TMDB: {}' - 'Title: {}' - 'Year: {}'' - 'Type: {}'".format(imdb, tmdbid, title, year, mediatype)
logger.info(logstr)