def exported(self, pathitems=None):
     """List all items that are exported to the Kodi library"""
     chunked_video_list, perpetual_range_selector = library.list_contents(self.perpetual_range_start)
     if chunked_video_list:
         self._exported_directory(pathitems, chunked_video_list, perpetual_range_selector)
     else:
         ui.show_notification(common.get_local_string(30111))
         xbmcplugin.endOfDirectory(g.PLUGIN_HANDLE, succeeded=False)
Ejemplo n.º 2
0
 def exported(self, pathitems=None):
     """List all items that are exported to the Kodi library"""
     # pylint: disable=unused-argument
     library_contents = library.list_contents()
     if library_contents:
         listings.build_video_listing(api.custom_video_list(library_contents), g.MAIN_MENU_ITEMS['exported'])
         _handle_endofdirectory(self.dir_update_listing)
     else:
         ui.show_notification(common.get_local_string(30013))
         xbmcplugin.endOfDirectory(g.PLUGIN_HANDLE, succeeded=False)
 def exported(self, pathitems=None):
     """List all items that are exported to the Kodi library"""
     library_contents = library.list_contents(self.perpetual_range_start)
     if library_contents['video_ids']:
         listings.build_video_listing(
             api.chunked_custom_video_list(library_contents),
             g.MAIN_MENU_ITEMS['exported'], pathitems)
         _handle_endofdirectory(self.dir_update_listing)
     else:
         ui.show_notification(common.get_local_string(30111))
         xbmcplugin.endOfDirectory(g.PLUGIN_HANDLE, succeeded=False)