From 9d3cf14cdd1f6d48be1a733e03f7b40f017b6820 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Sun, 14 Jun 2026 00:37:20 -0700 Subject: [PATCH] video settings: video API placeholders use the exact music service structure Standardized the TMDB/TVDB placeholders to the same .api-service-frame .stg-service accordion markup as every music API service (header + toggleStgService accordion + body with API Key field + callback-info), plus the same 'Expand All' header. No bespoke structure. Reuses the existing accordion handlers (already defined, integrity test green). --- tests/test_video_side_shell.py | 4 ++- webui/index.html | 45 ++++++++++++++++++++++++++-------- 2 files changed, 38 insertions(+), 11 deletions(-) diff --git a/tests/test_video_side_shell.py b/tests/test_video_side_shell.py index 032391bc..ffdb3a48 100644 --- a/tests/test_video_side_shell.py +++ b/tests/test_video_side_shell.py @@ -211,7 +211,9 @@ def test_video_side_hides_music_api_config_and_shows_placeholders(): css = _CSS_PATH.read_text(encoding="utf-8") assert 'body[data-side="video"] [data-music-only]' in css # music API hidden on video assert "data-music-only" in _INDEX # the music API group is marked - assert "TMDB API Key" in _INDEX and "TVDB API Key" in _INDEX # video placeholders + # Video placeholders use the SAME .api-service-frame structure as music. + assert 'class="api-service-frame stg-service" data-service="tmdb"' in _INDEX + assert 'class="api-service-frame stg-service" data-service="tvdb"' in _INDEX def test_video_settings_module_referenced_and_isolated(): diff --git a/webui/index.html b/webui/index.html index f9468d4b..1c391de0 100644 --- a/webui/index.html +++ b/webui/index.html @@ -4740,18 +4740,43 @@ + side in place of the music API services). Same structure as the + music service frames above. -->
-

API Configuration

-
- - - Coming soon — primary movie/TV metadata source. +

API Configuration

+
+
+ +

TMDB

+ +
+
+
+ + +
+
+
Get your key from TMDB API Settings
+
Primary movie & TV metadata source.
+
+
-
- - - Coming soon — TV metadata source. +
+
+ +

TVDB

+ +
+
+
+ + +
+
+
Get your key from TheTVDB API
+
TV series metadata source.
+
+