예제 #1
0
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
예제 #2
0
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