Esempio n. 1
0
def show_archive():
    log('show_archive started')
    archive_dates = scraper.get_archive_dates()
    items = [{'label': archive_date['title'],
              'url': plugin.url_for('show_archived_videos',
                                    archive_id=archive_date['archive_id']),
             } for archive_date in archive_dates]
    return plugin.add_items(items)
Esempio n. 2
0
def show_archive():
    log('show_archive started')
    archive_dates = scraper.get_archive_dates()
    items = [{
        'label':
        archive_date['title'],
        'url':
        plugin.url_for('show_archived_videos',
                       archive_id=archive_date['archive_id']),
    } for archive_date in archive_dates]
    return plugin.add_items(items)
Esempio n. 3
0
def show_archive():
    archive_dates = scraper.get_archive_dates()
    items = [{
        'label': archive_date['title'],
        'path': plugin.url_for(
            'show_archived_videos',
            archive_id=archive_date['archive_id'],
        ),
    } for archive_date in archive_dates]
    items.reverse()
    return plugin.finish(items)