From 5a01f8b910b29f4e3fc8b6eab0a8db477125e897 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Sun, 14 Dec 2025 17:58:20 +0100 Subject: [PATCH] Add web config --- resources/web/epg_mapping.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/web/epg_mapping.js b/resources/web/epg_mapping.js index 749c050..20b8c6d 100644 --- a/resources/web/epg_mapping.js +++ b/resources/web/epg_mapping.js @@ -223,7 +223,7 @@ class EPGMappingManager { // First check EPG status let epgStatusResponse; - try { + try { epgStatusResponse = await fetch(`${this.apiBase}/api/epg/status`); if (epgStatusResponse.ok) { const epgStatus = await epgStatusResponse.json(); @@ -231,11 +231,11 @@ class EPGMappingManager { throw new Error('EPG URL not configured. Please configure a valid EPG URL in the Advanced tab first.'); } if (!epgStatus.cache_valid) { - logger.info('EPG cache not valid, will attempt to download...'); + console.log('EPG cache not valid, will attempt to download...'); // ← CHANGED TO console.log } } } catch (statusError) { - logger.warning('Could not check EPG status:', statusError); + console.warn('Could not check EPG status:', statusError); // ← CHANGED TO console.warn } // Load all data in parallel