コード例 #1
0
def get_feed():
    global data_cache
    cookies, success = bt_login()
    if success:
        return pickle.loads(data_cache.cacheFunction(_get_feed, cookies))

    return []
コード例 #2
0
def get_recently_active():
    global data_cache
    cookies, success = bt_login()
    if success:
        return pickle.loads(
            data_cache.cacheFunction(_get_recently_active, cookies))

    return []
コード例 #3
0
def search(search_for):
    global data_cache
    cookies, success = bt_login()
    if success:
        return pickle.loads(
            data_cache.cacheFunction(_search, cookies, search_for))

    return []
コード例 #4
0
def get_channel(channel, page):
    global data_cache
    cookies, success = bt_login()
    if success:
        return pickle.loads(
            data_cache.cacheFunction(_get_channel, channel, page, cookies))

    return []
コード例 #5
0
def get_playlist(playlist):
    global data_cache
    cookies, success = bt_login()
    if success:
        return pickle.loads(
            data_cache.cacheFunction(_get_playlist, cookies, playlist))

    return []
コード例 #6
0
def get_video(video_id):
    global data_cache
    cookies = []
    success = True
    #cookies, success = bt_login()
    if success:
        return pickle.loads(
            data_cache.cacheFunction(_get_video, cookies, video_id))

    return []