From a3bf8585588b11f78e70e80b8231cce42cf83477 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Thu, 12 Mar 2026 12:45:59 -0700 Subject: [PATCH] =?UTF-8?q?Seamless=20Spotify=20rate=20limit=20UX=20?= =?UTF-8?q?=E2=80=94=20replace=20intrusive=20modal=20with=20ambient=20indi?= =?UTF-8?q?cators?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_server.py | 5 +- webui/index.html | 36 ------------- webui/static/script.js | 114 +++++++++++++---------------------------- webui/static/style.css | 45 ++++++++++++++++ 4 files changed, 83 insertions(+), 117 deletions(-) diff --git a/web_server.py b/web_server.py index 8d397665..c98307ee 100644 --- a/web_server.py +++ b/web_server.py @@ -3587,7 +3587,7 @@ def get_status(): if is_rate_limited or cooldown_remaining > 0: # During rate limit or post-ban cooldown, skip the auth probe entirely. # Probing Spotify here would reset the rate limit timer. - music_source = 'spotify' + music_source = 'itunes' # App uses iTunes during ban — reflect truth spotify_response_time = 0 else: spotify_start = time.time() @@ -3600,7 +3600,8 @@ def get_status(): 'response_time': round(spotify_response_time, 1), 'source': music_source, 'rate_limited': is_rate_limited, - 'rate_limit': rate_limit_info + 'rate_limit': rate_limit_info, + 'post_ban_cooldown': cooldown_remaining if cooldown_remaining > 0 else None } _status_cache_timestamps['spotify'] = current_time # else: use cached value diff --git a/webui/index.html b/webui/index.html index 6adc7f28..df5915d6 100644 --- a/webui/index.html +++ b/webui/index.html @@ -4760,42 +4760,6 @@ - - -