From 6ff6cc0e5950f7560db22d57177e1e876f200980 Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Wed, 27 Aug 2025 15:32:20 -0700 Subject: [PATCH] fix a break in front end content from backend --- web_server.py | 2 +- webui/static/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web_server.py b/web_server.py index 05a09cb0..7414f177 100644 --- a/web_server.py +++ b/web_server.py @@ -126,7 +126,7 @@ transfer_data_cache = { 'data': {}, 'last_update': 0, 'update_lock': threading.Lock(), - 'cache_duration': 1.5 # Cache for 1.5 seconds to reduce API calls + 'cache_duration': 0.75 # Cache for 0.75 seconds for faster updates } def get_cached_transfer_data(): diff --git a/webui/static/script.js b/webui/static/script.js index 9ed69b7b..37726bd2 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -2055,7 +2055,7 @@ function startModalDownloadPolling(playlistId) { } catch (error) { console.error(`Polling error for ${playlistId}:`, error); } - }, 2000); + }, 500); } async function updateModalWithLiveDownloadProgress() { try {