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)
Exemple #2
0
 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)