diff --git a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/PluginConfiguration.cs b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/PluginConfiguration.cs index 5e6ef14..2e97960 100644 --- a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/PluginConfiguration.cs +++ b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/PluginConfiguration.cs @@ -42,4 +42,9 @@ public class PluginConfiguration : BasePluginConfiguration /// Gets or sets enabled Jellyfin library ids. Empty means all libraries. /// public List EnabledLibraryIds { get; set; } = new(); + + /// + /// Gets or sets the path where .strm files will be created. + /// + public string StrmOutputPath { get; set; } = string.Empty; } diff --git a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/config.js b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/config.js index c259fba..7e38881 100644 --- a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/config.js +++ b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/config.js @@ -11,11 +11,18 @@ const movieNightConfigPage = { view.querySelector("#ApiToken").value = config.ApiToken || ""; view.querySelector("#SyncIntervalMinutes").value = config.SyncIntervalMinutes || 30; + view.querySelector("#StrmOutputPath").value = + config.StrmOutputPath || ""; view.querySelector("#Enabled").checked = config.Enabled || false; view.querySelector("#EnablePeriodicSync").checked = config.EnablePeriodicSync !== false; view.querySelector("#EnablePlaybackEvents").checked = config.EnablePlaybackEvents !== false; + + const uiScriptUrl = ApiClient.getUrl("web/ConfigurationPage", { + name: "MovieNight.ui.js", + }); + view.querySelector("#UIScriptUrl").innerText = uiScriptUrl; }) .finally(() => { Dashboard.hideLoadingMsg(); @@ -34,6 +41,7 @@ const movieNightConfigPage = { form.querySelector("#SyncIntervalMinutes").value || "30", 10, ); + config.StrmOutputPath = form.querySelector("#StrmOutputPath").value; config.Enabled = form.querySelector("#Enabled").checked; config.EnablePeriodicSync = form.querySelector("#EnablePeriodicSync").checked; diff --git a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/configPage.html b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/configPage.html index 675f7ea..adb20db 100644 --- a/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/configPage.html +++ b/plugins/jellyfin/Jellyfin.Plugin.MovieNight/Configuration/configPage.html @@ -27,6 +27,12 @@ +
+ + +
Directory where .strm files will be created for new films.
+
+