Enhancement: add enableMediaControl flag to hide play/pause controls for emby/jellyfin (#5402)

This commit is contained in:
André Bürger
2025-06-09 18:41:48 +02:00
committed by GitHub
parent fcfb9c2237
commit a64c83209a
4 changed files with 13 additions and 6 deletions

View File

@@ -295,6 +295,7 @@ export function cleanServiceGroups(groups) {
// emby, jellyfin
enableBlocks,
enableNowPlaying,
enableMediaControl,
// emby, jellyfin, tautulli
enableUser,
@@ -471,6 +472,7 @@ export function cleanServiceGroups(groups) {
if (wan) widget.wan = wan;
}
if (["emby", "jellyfin"].includes(type)) {
if (enableMediaControl !== undefined) widget.enableMediaControl = !!JSON.parse(enableMediaControl);
if (enableBlocks !== undefined) widget.enableBlocks = JSON.parse(enableBlocks);
if (enableNowPlaying !== undefined) widget.enableNowPlaying = JSON.parse(enableNowPlaying);
}