def get_feed(): global data_cache cookies, success = bt_login() if success: return pickle.loads(data_cache.cacheFunction(_get_feed, cookies)) return []
def get_recently_active(): global data_cache cookies, success = bt_login() if success: return pickle.loads( data_cache.cacheFunction(_get_recently_active, cookies)) return []
def search(search_for): global data_cache cookies, success = bt_login() if success: return pickle.loads( data_cache.cacheFunction(_search, cookies, search_for)) return []
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 []
def get_playlist(playlist): global data_cache cookies, success = bt_login() if success: return pickle.loads( data_cache.cacheFunction(_get_playlist, cookies, playlist)) return []
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 []