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 @@
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 */ }); }