Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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