mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Enhancement: additional tautulli jellyfin emby configuration options (#3350)
This commit is contained in:
parent
f4fc30cd9f
commit
312e97d18b
6 changed files with 121 additions and 67 deletions
|
@ -395,6 +395,8 @@ export function cleanServiceGroups(groups) {
|
|||
|
||||
// emby, jellyfin, tautulli
|
||||
enableUser,
|
||||
expandOneStreamToTwoRows,
|
||||
showEpisodeNumber,
|
||||
|
||||
// glances, pihole
|
||||
version,
|
||||
|
@ -520,14 +522,13 @@ 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 (enableUser !== undefined) {
|
||||
cleanedService.widget.enableUser = !!JSON.parse(enableUser);
|
||||
}
|
||||
}
|
||||
if (["tautulli"].includes(type)) {
|
||||
if (enableUser !== undefined) {
|
||||
cleanedService.widget.enableUser = !!JSON.parse(enableUser);
|
||||
}
|
||||
if (["emby", "jellyfin", "tautulli"].includes(type)) {
|
||||
if (expandOneStreamToTwoRows !== undefined)
|
||||
cleanedService.widget.expandOneStreamToTwoRows = !!JSON.parse(expandOneStreamToTwoRows);
|
||||
if (showEpisodeNumber !== undefined)
|
||||
cleanedService.widget.showEpisodeNumber = !!JSON.parse(showEpisodeNumber);
|
||||
if (enableUser !== undefined) cleanedService.widget.enableUser = !!JSON.parse(enableUser);
|
||||
}
|
||||
if (["sonarr", "radarr"].includes(type)) {
|
||||
if (enableQueue !== undefined) cleanedService.widget.enableQueue = JSON.parse(enableQueue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue