예제 #1
0
def _read_tv_channels_cache_(filepath):
    tv_data = CacheManager().get('tv_data')
    if tv_data is None:
        tv_data = jsonfile.read_file(filepath)
        CacheManager().put('tv_data', tv_data)
    return tv_data
예제 #2
0
def _read_favorite_tv_shows_cache_(filepath):
    favorites = CacheManager().get('dtb_tv_favorites')
    if favorites is None:
        favorites = jsonfile.read_file(filepath)
        CacheManager().put('dtb_tv_favorites', favorites)
    return favorites
예제 #3
0
def _read_live_tv_channels_cache_(filepath):
    live_tv_data = CacheManager().get('live_tv_data')
    if live_tv_data is None:
        live_tv_data = jsonfile.read_file(filepath)
        CacheManager().put('live_tv_data', live_tv_data)
    return live_tv_data
예제 #4
0
def _read_favorite_tv_shows_cache_(filepath):
    favorites = CacheManager().get('dtb_tv_favorites')
    if favorites is None:
        favorites = jsonfile.read_file(filepath)
        CacheManager().put('dtb_tv_favorites', favorites)
    return favorites
예제 #5
0
def _read_live_tv_channels_cache_(filepath):
    live_tv_data = CacheManager().get('live_tv_data')
    if live_tv_data is None:
        live_tv_data = jsonfile.read_file(filepath)
        CacheManager().put('live_tv_data', live_tv_data)
    return live_tv_data
예제 #6
0
def _read_tv_channels_cache_(filepath):
    tv_data = CacheManager().get('dtb_tv_data')
    if tv_data is None:
        tv_data = jsonfile.read_file(filepath)
        CacheManager().put('dtb_tv_data', tv_data)
    return tv_data