def most_shared(): items = [] content = topdocos.get_section(SITE_URL, 'most shared') for i in content: items.append({ 'label': i['label'], 'path': plugin.url_for('play_content', url=i['path']), }) return items
def recent(): items = [] content = topdocos.get_section(SITE_URL, 'recently added') for i in content: items.append({ 'label': i['label'], 'path': plugin.url_for('play_content', url=i['path']), 'thumbnail': i['thumbnail'], }) return items