예제 #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 []