Enhancement: add maxShowNowPlayingCount option for Emby and Jellyfin

This commit is contained in:
GodD6366 2024-09-24 19:44:58 +08:00
parent fadde8c266
commit 7502a0b7d9

View File

@ -544,7 +544,8 @@ export function cleanServiceGroups(groups) {
if (["emby", "jellyfin"].includes(type)) { if (["emby", "jellyfin"].includes(type)) {
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks); if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks);
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying); if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying);
if (maxShowNowPlayingCount !== undefined) cleanedService.widget.maxShowNowPlayingCount = JSON.parse(maxShowNowPlayingCount); if (maxShowNowPlayingCount !== undefined)
cleanedService.widget.maxShowNowPlayingCount = JSON.parse(maxShowNowPlayingCount);
} }
if (["emby", "jellyfin", "tautulli"].includes(type)) { if (["emby", "jellyfin", "tautulli"].includes(type)) {
if (expandOneStreamToTwoRows !== undefined) if (expandOneStreamToTwoRows !== undefined)