From 2c25ddd948ef25e2b18a1d450a6929037f45e8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Tue, 24 Mar 2020 17:58:40 +0100 Subject: [PATCH] Use CACHE_PREVENT when opening a program so the cache is refreshed. --- resources/lib/modules/catalog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/modules/catalog.py b/resources/lib/modules/catalog.py index 13eb0d6..0a266f5 100644 --- a/resources/lib/modules/catalog.py +++ b/resources/lib/modules/catalog.py @@ -10,7 +10,7 @@ from resources.lib.kodiutils import TitleItem from resources.lib.modules.menu import Menu from resources.lib.viervijfzes import CHANNELS from resources.lib.viervijfzes.auth import AuthApi -from resources.lib.viervijfzes.content import ContentApi, UnavailableException +from resources.lib.viervijfzes.content import ContentApi, UnavailableException, CACHE_PREVENT _LOGGER = logging.getLogger('catalog') @@ -64,7 +64,7 @@ class Catalog: :type program_id: str """ try: - program = self._api.get_program(channel, program_id) + program = self._api.get_program(channel, program_id, cache=CACHE_PREVENT) # Use CACHE_PREVENT since we want fresh data except UnavailableException: kodiutils.ok_dialog(message=kodiutils.localize(30717)) # This program is not available in the catalogue. kodiutils.end_of_directory()