def index(): """Main menu""" if ku.get_setting_as_bool("show_genres"): add_menu_item(themes, 32005, args={ "href": "en/categories/stories", "title": ku.localize(32005) }, art=ku.icon("genres.png")) if ku.get_setting_as_bool("show_motions"): add_menu_item(themes, 32002, args={ "href": "en/categories/motions", "title": ku.localize(32002) }, art=ku.icon("techniques.png")) if ku.get_setting_as_bool("show_characters"): add_menu_item(themes, 32003, args={ "href": "en/categories/characters", "title": ku.localize(32003) }, art=ku.icon("characters.png")) if ku.get_setting_as_bool("show_authors"): add_menu_item(authors, 32004, art=ku.icon("authors.png")) if ku.get_setting_as_bool("show_experts"): add_menu_item(experts, 32023, art=ku.icon("experts.png")) if ku.get_setting_as_bool("show_techniques"): add_menu_item(themes, 32006, args={"href": "en/categories/techniques", "title": ku.localize(32006)}, art=ku.icon("techniques.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, args={"menu": True}, art=ku.icon("search.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32026, art=ku.icon("saved.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): """Main menu""" if ku.get_setting_as_bool("show_genres"): add_menu_item(themes, 32005, { "href": "en/categories/stories", "title": ku.get_string(32005) }, ku.icon("genres.png")) if ku.get_setting_as_bool("show_motions"): add_menu_item(themes, 32002, { "href": "en/categories/motions", "title": ku.get_string(32002) }, ku.icon("techniques.png")) if ku.get_setting_as_bool("show_characters"): add_menu_item(themes, 32003, { "href": "en/categories/characters", "title": ku.get_string(32003) }, ku.icon("characters.png")) if ku.get_setting_as_bool("show_authors"): add_menu_item(authors, 32004, art=ku.icon("authors.png")) if ku.get_setting_as_bool("show_experts"): add_menu_item(experts, 32023, art=ku.icon("experts.png")) if ku.get_setting_as_bool("show_techniques"): add_menu_item(themes, 32006, { "href": "en/categories/techniques", "title": ku.get_string(32006) }, ku.icon("techniques.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xp.setPluginCategory(plugin.handle, ADDON_NAME) xp.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" if ku.get_setting_as_bool("show_collections"): add_menu_item(collections, 32004, art=ku.icon("collection.png")) # Collections if ku.get_setting_as_bool("show_years"): add_menu_item(year, 32006, art=ku.icon("year.png")) # Years if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32005, art=ku.icon("recent.png")) # Recent if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) # Search if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) # Settings xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): """Main menu""" if ku.get_setting_as_bool("show_themes"): add_menu_item(theme, 32004, {"token": 0}, ku.icon("themes.png")) if ku.get_setting_as_bool("show_years"): add_menu_item(year, 32005, {"token": 0}, ku.icon("year.png")) if ku.get_setting_as_bool("show_series"): add_menu_item(series, 32006, {"token": 0}, ku.icon("collection.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xp.setPluginCategory(plugin.handle, ADDON_NAME) xp.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" if ku.get_setting_as_bool("show_featured"): add_menu_item(featured, 32008, art=ku.icon("featured.png")) if ku.get_setting_as_bool("show_collection"): add_menu_item(section, 32002, art=ku.icon("collection.png")) if ku.get_setting_as_bool("show_shows"): add_menu_item(shows, 32003, art=ku.icon("shows.png")) if ku.get_setting_as_bool("show_new"): add_menu_item(new, 32006, art=ku.icon("new.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32005, art=ku.icon("recent.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, args={"menu": True}, art=ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): """Main menu""" if ku.get_setting_as_bool("show_home"): add_menu_item(show_category, 32009, { "href": "free", "title": ku.get_string(32009)}, ku.icon("home.png")) if ku.get_setting_as_bool("show_new"): add_menu_item(show_category, 32004, { "href": "free/new", "title": ku.get_string(32004)}, ku.icon("new.png")) if ku.get_setting_as_bool("show_popular"): add_menu_item(show_category, 32005, { "href": "free/popular", "title": ku.get_string(32005)}, ku.icon("popular.png")) if ku.get_setting_as_bool("show_collections"): add_menu_item(show_category, 32006, { "key": "collection", "href": "free/collections", "title": ku.get_string(32006), "isdir": True }, ku.icon("collection.png")) if ku.get_setting_as_bool("show_the_cut"): add_menu_item(show_category, "The Cut", { "key": "the-cut", "href": "the-cut", "title": "The Cut", }, ku.icon("the-cut.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32021) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xp.setPluginCategory(plugin.handle, ADDON_NAME) xp.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" add_menu_item(section, "Collections", art=ku.icon("collection.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32005, art=ku.icon("recent.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, args={"menu": True}, art=ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" xbmc.executebuiltin('Container.SetViewMode(%d)' % VIEW_TYPE_ICON) xbmc.executebuiltin('Container.SetViewMode(%d)' % VIEW_TYPE_ICON) #add_menu_item(ultimos, "Ultimos", art=ku.icon("programas.png")) # Ultimos add_menu_item(programas, CATEGORY_PROGRAMAS, art=ku.icon("programas.png")) # Programas xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): """Main menu""" if ku.get_setting_as_bool("show_highlights"): add_menu_item(highlights, ku.get_string(32006), art=ku.icon("highlights.png")) if ku.get_setting_as_bool("show_genres"): add_menu_item(browse, ku.get_string(32005), {"id": "genre_items", "title": ku.get_string(32005)}, ku.icon("genres.png")) if ku.get_setting_as_bool("show_subjects"): add_menu_item(browse, ku.get_string(32003), {"id": "subject_items", "title": ku.get_string(32003)}, ku.icon("subjects.png")) if ku.get_setting_as_bool("show_people"): add_menu_item(browse, ku.get_string(32004), {"id": "people_items", "title": ku.get_string(32004)}, ku.icon("people.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xp.setPluginCategory(plugin.handle, ADDON_NAME) xp.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" if ku.get_setting_as_bool("show_featured"): add_menu_item( section, 32002, { "token": "featuredFilmCollection_facet", "category": ku.localize(32002) }, ku.icon("featured.png")) if ku.get_setting_as_bool("show_place"): add_menu_item(section, 32009, { "token": "place_facet", "category": ku.localize(32009) }, ku.icon("place.png")) if ku.get_setting_as_bool("show_series"): add_menu_item(section, 32021, { "token": "series_facet", "category": ku.localize(32021) }, ku.icon("series.png")) if ku.get_setting_as_bool("show_genre"): add_menu_item(section, 32004, { "token": "genre_facet", "category": ku.localize(32004) }, ku.icon("genre.png")) if ku.get_setting_as_bool("show_years"): add_menu_item(section, 32006, { "token": "decade_facet", "category": ku.localize(32006) }, ku.icon("year.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32005, art=ku.icon("recent.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): """Main menu""" if ku.get_setting_as_bool("show_home"): add_menu_item(show_category, 32009, { "href": "free", "title": ku.get_string(32009) }, ku.icon("home.png")) if ku.get_setting_as_bool("show_new"): add_menu_item(show_category, 32004, { "href": "free/new", "title": ku.get_string(32004) }, ku.icon("new.png")) if ku.get_setting_as_bool("show_popular"): add_menu_item(show_category, 32005, { "href": "free/popular", "title": ku.get_string(32005) }, ku.icon("popular.png")) if ku.get_setting_as_bool("show_collections"): add_menu_item( show_category, 32006, { "key": "collection", "href": "free/collections", "title": ku.get_string(32006), "isdir": True }, ku.icon("collection.png")) if ku.get_setting_as_bool("show_the_cut"): add_menu_item(show_category, "The Cut", { "key": "the-cut", "href": "the-cut", "title": "The Cut", }, ku.icon("the-cut.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32021) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xp.setPluginCategory(plugin.handle, ADDON_NAME) xp.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" if ku.get_setting_as_bool("show_contributor"): add_menu_item(section, 32002, { "idx": "index/contributor/", "category": ku.localize(32002) }, ku.icon("contributor.png")) if ku.get_setting_as_bool("show_location"): add_menu_item(section, 32009, { "idx": "index/location/", "category": ku.localize(32009) }, ku.icon("location.png")) if ku.get_setting_as_bool("show_partof"): add_menu_item(section, 32021, { "idx": "index/partof/", "category": ku.localize(32021) }, ku.icon("series.png")) if ku.get_setting_as_bool("show_subject"): add_menu_item(section, 32004, { "idx": "index/subject/", "category": ku.localize(32004) }, ku.icon("genre.png")) if ku.get_setting_as_bool("show_years"): add_menu_item(year, 32006, art=ku.icon("year.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32005, art=ku.icon("recent.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" if ku.get_setting_as_bool("show_live"): add_menu_item(live, 32006, art=ku.icon("livetv.png")) if ku.get_setting_as_bool("show_programmes"): add_menu_item(programme, 32009, art=ku.icon("programme.png")) if ku.get_setting_as_bool("show_topics"): add_menu_item(topic, 32008, art=ku.icon("topic.png")) if ku.get_setting_as_bool("show_past24h"): add_menu_item(past24h, 32004, art=ku.icon("past24h.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32005, art=ku.icon("recent.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, {"menu": True}, ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" if ku.get_setting_as_bool("show_creator"): add_menu_item(section, 32002, args={"idx": "creator", "category": ku.localize(32002)}, art=ku.icon("creator.png")) if ku.get_setting_as_bool("show_subject"): add_menu_item(section, 32004, args={"idx": "subject", "category": ku.localize(32004)}, art=ku.icon("subject.png")) if ku.get_setting_as_bool("show_collection"): add_menu_item(section, 32008, args={"idx": "collection", "category": ku.localize(32008)}, art=ku.icon("collection.png")) if ku.get_setting_as_bool("show_years"): add_menu_item(section, 32006, args={"idx": "year", "category": ku.localize(32006)}, art=ku.icon("year.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32005, art=ku.icon("recent.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, args={"menu": True}, art=ku.icon("search.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)
def index(): # type: () -> None """Main menu""" if ku.get_setting_as_bool("show_home"): add_menu_item(show_category, 32009, args={ "href": "free", "title": ku.localize(32009) }, art=ku.icon("home.png")) if ku.get_setting_as_bool("show_new"): add_menu_item(show_category, 32004, args={ "href": "free/new", "title": ku.localize(32004) }, art=ku.icon("new.png")) if ku.get_setting_as_bool("show_popular"): add_menu_item(show_category, 32005, args={ "href": "free/popular", "title": ku.localize(32005) }, art=ku.icon("popular.png")) if ku.get_setting_as_bool("show_collections"): add_menu_item(show_category, 32006, args={ "key": "collection", "href": "free/collections", "title": ku.localize(32006), "sub_directory": True }, art=ku.icon("collection.png")) if ku.get_setting_as_bool("show_kermode"): add_menu_item(show_category, 32026, args={ "href": "subscription/kermode-introduces", "title": ku.localize(32026), "key": "subscription", "target": "play-kermode-introduces" }, art=ku.icon("kermode.png")) if ku.get_setting_as_bool("show_the_cut"): add_menu_item(the_cut, "The Cut", art=ku.icon("the-cut.png")) if ku.get_setting_as_bool("show_search"): add_menu_item(search, 32007, args={"menu": True}, art=ku.icon("search.png")) if ku.get_setting_as_bool("show_recent"): add_menu_item(recent, 32021, art=ku.icon("saved.png")) if ku.get_setting_as_bool("show_settings"): add_menu_item(settings, 32010, art=ku.icon("settings.png"), directory=False) xbmcplugin.setPluginCategory(plugin.handle, ADDON_NAME) xbmcplugin.endOfDirectory(plugin.handle)