Migliorie contextmenu

This commit is contained in:
mac12m99
2021-06-08 20:33:17 +02:00
parent c8517dfa6d
commit a00641ab7a
8 changed files with 33 additions and 376 deletions
+5 -5
View File
@@ -107,8 +107,8 @@ def execute_sql(sql):
def check_condition():
# support.dbg()
dbid = xbmc.getInfoLabel('ListItem.DBID')
path = search_paths( dbid )
dbid = xbmc.getInfoLabel('ListItem.TvShowDBID')
path = search_paths(dbid)
if path:
return True
return False
@@ -117,15 +117,15 @@ def check_condition():
def get_menu_items():
logger.debug('get menu item')
if check_condition():
return config.get_localized_string(70269) , execute
return [(config.get_localized_string(70269), execute)]
else:
return []
def execute():
dbid = xbmc.getInfoLabel('ListItem.DBID')
path = search_paths( dbid )
dbid = xbmc.getInfoLabel('ListItem.TvShowDBID')
path = search_paths(dbid)
if path:
item = Item(action="update_tvshow", channel="videolibrary", path=path)
# Why? I think it is not necessary, just commented