From a5ff4a1dd8ae0eb6af6630ae108d482c26d89a50 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Sun, 14 Jun 2026 07:47:40 -0700 Subject: [PATCH] video Tools: server-prefix the scan title (Plex/Jellyfin Library Scan) Dashboard endpoint now returns the active media server; the Tools card title becomes ' Library Scan' (e.g. 'Plex Library Scan'), matching how music prefixes 'Plex Database Updater'. --- api/video/dashboard.py | 8 +++++++- webui/index.html | 2 +- webui/static/video/video-scan.js | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/api/video/dashboard.py b/api/video/dashboard.py index 77201ac8..a5dc3918 100644 --- a/api/video/dashboard.py +++ b/api/video/dashboard.py @@ -18,7 +18,13 @@ def register_routes(bp): def video_dashboard(): from . import get_video_db try: - return jsonify(get_video_db().dashboard_stats()) + stats = get_video_db().dashboard_stats() + try: + from config.settings import config_manager + stats["server"] = config_manager.get_active_media_server() + except Exception: + stats["server"] = None + return jsonify(stats) except Exception: logger.exception("Failed to build video dashboard stats") return jsonify({"error": "Failed to load video dashboard stats"}), 500 diff --git a/webui/index.html b/webui/index.html index e7c86260..8adc9d38 100644 --- a/webui/index.html +++ b/webui/index.html @@ -761,7 +761,7 @@
-

Library Scan

+

Library Scan

Last Scan: Never

diff --git a/webui/static/video/video-scan.js b/webui/static/video/video-scan.js index 6b5c4522..f01fb6bd 100644 --- a/webui/static/video/video-scan.js +++ b/webui/static/video/video-scan.js @@ -65,6 +65,12 @@ set('shows', lib.shows || 0); set('episodes', lib.episodes || 0); set('size', formatSize(lib.size_bytes)); + // Server-prefixed title, like music ("Plex Database Updater"). + var titleEl = document.querySelector('[data-video-scan-title]'); + if (titleEl && d.server) { + titleEl.textContent = + d.server.charAt(0).toUpperCase() + d.server.slice(1) + ' Library Scan'; + } }) .catch(function () { /* leave defaults */ }); }