From 7502a0b7d977d1f4fa719d462d62fd10a17a131f Mon Sep 17 00:00:00 2001 From: GodD6366 Date: Tue, 24 Sep 2024 19:44:58 +0800 Subject: [PATCH] Enhancement: add maxShowNowPlayingCount option for Emby and Jellyfin --- src/utils/config/service-helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index e53a43fe..ceb495d9 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -544,7 +544,8 @@ export function cleanServiceGroups(groups) { if (["emby", "jellyfin"].includes(type)) { if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks); 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 (expandOneStreamToTwoRows !== undefined)