diff --git a/Shokofin/Pages/Scripts/Common.js b/Shokofin/Pages/Scripts/Common.js index 1e316385..28c10321 100644 --- a/Shokofin/Pages/Scripts/Common.js +++ b/Shokofin/Pages/Scripts/Common.js @@ -973,9 +973,8 @@ function onLinkRedirectClick(event) { * @returns {void} Void. */ function overrideLink(target) { - const href = target.getAttribute("href"); - target.dataset.href = href; - target.href = location.href.split("#")[0] + "#" + getConfigurationPageUrl(href); + const page = target.dataset.page; + target.href = location.href.split("#")[0] + "#" + getConfigurationPageUrl(page); target.addEventListener("click", onLinkRedirectClick); } diff --git a/Shokofin/Pages/Scripts/Settings.js b/Shokofin/Pages/Scripts/Settings.js index 75e7a498..aab2e7e8 100644 --- a/Shokofin/Pages/Scripts/Settings.js +++ b/Shokofin/Pages/Scripts/Settings.js @@ -410,7 +410,7 @@ function applyFormToConfig(form, config) { config.UseGroupsForShows = form.querySelector("#UseGroupsForShows").checked; config.SeasonOrdering = form.querySelector("#SeasonOrdering").value; config.SeparateMovies = form.querySelector("#SeparateMovies").checked; - config.FilterMovieLibraries = form.querySelector("#FilterMovieLibraries").checked; + config.FilterMovieLibraries = !form.querySelector("#DisableFilterMovieLibraries").checked; config.SpecialsPlacement = form.querySelector("#SpecialsPlacement").value; config.MovieSpecialsAsExtraFeaturettes = form.querySelector("#MovieSpecialsAsExtraFeaturettes").checked; config.AddMissingMetadata = form.querySelector("#AddMissingMetadata").checked; @@ -576,7 +576,7 @@ async function applyConfigToForm(form, config) { } form.querySelector("#SeasonOrdering").value = config.SeasonOrdering; form.querySelector("#SeparateMovies").checked = config.SeparateMovies; - form.querySelector("#FilterMovieLibraries").checked = config.FilterMovieLibraries; + form.querySelector("#DisableFilterMovieLibraries").checked = !config.FilterMovieLibraries; form.querySelector("#SpecialsPlacement").value = config.SpecialsPlacement === "Default" ? "AfterSeason" : config.SpecialsPlacement; form.querySelector("#MovieSpecialsAsExtraFeaturettes").checked = config.MovieSpecialsAsExtraFeaturettes; form.querySelector("#AddMissingMetadata").checked = config.AddMissingMetadata; diff --git a/Shokofin/Pages/Settings.html b/Shokofin/Pages/Settings.html index f4bf713d..dd328585 100644 --- a/Shokofin/Pages/Settings.html +++ b/Shokofin/Pages/Settings.html @@ -34,31 +34,31 @@