Esempio n. 1
0
def get_podcast_live(podcast, count=5):
    return parser_list(
        PodcastLive,
        call_api('getPodcastLive', {
            'podcast': podcast,
            'count': count,
        }))
def get_podcast_episodes(podcast, count=5):
    return parser_list(
        PodcastEpisode,
        call_api('getPodcastEpisodes', {
            'podcast': podcast,
            'count': count,
        }))
Esempio n. 3
0
def get_deleted(dateStart=None, dateEnd=None):
    params = {}

    if dateStart is not None:
        params['dateStart'] = dateStart.strftime('%y-%m-%d')
    if dateEnd is not None:
        params['dateEnd'] = dateEnd.strftime('%y-%m-%d')

    return parser_list(DeleteEntry, call_api('getDeleted', params))
Esempio n. 4
0
def get_live(count=5, dateStart=None, dateEnd=None):
    params = {'count': count}

    if dateStart is not None:
        params['dateStart'] = dateStart.strftime('%y-%m-%d')
    if dateEnd is not None:
        params['dateEnd'] = dateEnd.strftime('%y-%m-%d')

    return parser_list(PodcastLive, call_api('getLive', params))
Esempio n. 5
0
def get_live(count=5, dateStart=None, dateEnd=None):
    params = { 'count': count }

    if dateStart is not None:
        params['dateStart'] = dateStart.strftime('%y-%m-%d')
    if dateEnd is not None:
        params['dateEnd'] = dateEnd.strftime('%y-%m-%d')

    return parser_list(PodcastLive, call_api('getLive', params))
Esempio n. 6
0
def get_podcast_episodes(podcast, count=5):
    return parser_list(PodcastEpisode, call_api('getPodcastEpisodes', {
        'podcast': podcast,
        'count': count,
    }))
Esempio n. 7
0
def get_live_by_id(id):
    return get_live_by_id_parser(call_api('getLiveByID', {'ID': id}))
Esempio n. 8
0
def get_podcasts():
    return parser_list(Podcast, call_api('getPodcasts'))
Esempio n. 9
0
def get_podcast_data(podcast):
    return parser_object(PodcastData, call_api('getPodcastData', { 'podcast': podcast }))
Esempio n. 10
0
def get_podcast_data(podcast):
    return parser_object(PodcastData,
                         call_api('getPodcastData', {'podcast': podcast}))
Esempio n. 11
0
def get_live_by_id(id):
    return get_live_by_id_parser(call_api('getLiveByID', { 'ID': id }))
Esempio n. 12
0
def get_podcast_live(podcast, count=5):
    return parser_list(PodcastLive, call_api('getPodcastLive', {
        'podcast': podcast,
        'count': count,
    }))