def recommendations(self, pathitems=None): """Show video lists for a genre""" # pylint: disable=unused-argument listings.build_lolomo_listing( api.root_lists(), g.MAIN_MENU_ITEMS['recommendations'], force_videolistbyid=True) _handle_endofdirectory(False)
def genres(self, pathitems): """Show video lists for a genre""" menu_data = g.MAIN_MENU_ITEMS[pathitems[1]] # pathitems indexes: 0 function name, 1 menu id, 2 optional id if len(pathitems) < 3: lolomo = api.root_lists() listings.build_lolomo_listing(lolomo, menu_data) else: #Here is provided the id of the genre, eg. get sub-menus of tvshows (all tv show) lolomo = api.genre(pathitems[2]) listings.build_lolomo_listing(lolomo, menu_data, exclude_lolomo_known=True) _handle_endofdirectory(False)
def genres(self, pathitems): """Show video lists for a genre""" menu_data = g.MAIN_MENU_ITEMS.get(pathitems[1]) if not menu_data: menu_data = g.LOCAL_DB.get_value(pathitems[1], table=TABLE_MENU_DATA, data_type=dict) # pathitems indexes: 0 function name, 1 menu id, 2 optional id if len(pathitems) < 3: lolomo = api.root_lists() listings.build_lolomo_listing(lolomo, menu_data) else: # Here is provided the id of the genre, eg. get sub-menus of tvshows (all tv show) lolomo = api.genre(pathitems[2]) listings.build_lolomo_listing(lolomo, menu_data, exclude_lolomo_known=True) _handle_endofdirectory(False)
def home(self, pathitems=None, cache_to_disc=True): """Show home listing""" # pylint: disable=unused-argument common.debug('Showing root video lists') listings.build_main_menu_listing(api.root_lists()) _handle_endofdirectory(False, cache_to_disc)
def home(self, pathitems=None): """Show home listing""" # pylint: disable=unused-argument common.debug('Showing root video lists') listings.build_main_menu_listing(api.root_lists())