示例#1
0
def list_episodes(Lang, ID):
    # Title
    # Description
    # Date
    # Link
    # Thumbnail
    items = []
    
    Episodes = ShowEpisodes.load_videos(Lang, Medi1Shows.generate_link_show_randtitle(ID, Lang))

    for Episode in Episodes:
        items.append({'label': Episode['title'],
                      'label2': Episode['description'],
                      'url': plugin.url_for('play', title=Episode['title'], icon=Episode['thumbnail'], idShow=ID, idEpisode=Episode['id']),
                      'thumbnail': Episode['thumbnail']})
    
    plugin.add_items(items)
    return []
示例#2
0
def emission_ar():
    # Show's attributs :
    # ID
    # Title
    # Resume
    # Link
    # Thumbnail
    items = []
    
    Shows = Medi1Shows.load_shows('ar')
    for Show in Shows:
        items.append({'label': Show['title'],
                      'label2': Show['title'],
                      'url': plugin.url_for('list_episodes', Lang='ar', ID=Show['id']),
                      'thumbnail': Show['thumbnail'],
                      'icon': Show['thumbnail']})
    
    plugin.add_items(items)
    return []