def list_selection(params):
listing = []
selection = scraper.get_selection()
if selection:
for media_node in selection:
li = media_to_kodi_item(media_node)
listing.append(li) # Item label
sortable_by = (
xbmcplugin.SORT_METHOD_LABEL
)
return common.plugin.create_listing(
listing,
#succeeded = True, #if False Kodi won’t open a new listing and stays on the current level.
#update_listing = False, #if True, Kodi won’t open a sub-listing but refresh the current one.
#cache_to_disk = True, #cache this view to disk.
#sort_methods = sortable_by, #he list of integer constants representing virtual folder sort methods.
#view_mode = None, #a numeric code for a skin view mode. View mode codes are different in different skins except for 50 (basic listing).
#content = None #string - current plugin content, e.g. ‘movies’ or ‘episodes’.
)
评论列表
文章目录