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
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
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
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