diff --git a/Jellyfin.Plugin.Seasonals/Api/SeasonalsController.cs b/Jellyfin.Plugin.Seasonals/Api/SeasonalsController.cs index 481863f..420fab8 100644 --- a/Jellyfin.Plugin.Seasonals/Api/SeasonalsController.cs +++ b/Jellyfin.Plugin.Seasonals/Api/SeasonalsController.cs @@ -3,6 +3,8 @@ using System.IO; using System.Reflection; using System.Text; using Microsoft.AspNetCore.Mvc; +using Jellyfin.Plugin.Seasonals; +using Jellyfin.Plugin.Seasonals.Configuration; namespace Jellyfin.Plugin.Seasonals.Api; @@ -19,9 +21,9 @@ public class SeasonalsController : ControllerBase /// The configuration object. [HttpGet("Config")] [Produces("application/json")] - public ActionResult GetConfig() + public ActionResult GetConfig() { - return SeasonalsPlugin.Instance?.Configuration ?? new object(); + return SeasonalsPlugin.Instance?.Configuration ?? new PluginConfiguration(); } /// @@ -38,7 +40,7 @@ public class SeasonalsController : ControllerBase return BadRequest(); } - var assembly = Assembly.GetExecutingAssembly(); + var assembly = typeof(SeasonalsPlugin).Assembly; // Convert path to resource name var resourcePath = path.Replace('/', '.').Replace('\\', '.'); var resourceName = $"Jellyfin.Plugin.Seasonals.Web.{resourcePath}"; diff --git a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html index b5ecd24..f2fa940 100644 --- a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html +++ b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html @@ -2,7 +2,7 @@ - Template + Seasonals Configuration
diff --git a/Jellyfin.Plugin.Seasonals/Jellyfin.Plugin.Seasonals.csproj b/Jellyfin.Plugin.Seasonals/Jellyfin.Plugin.Seasonals.csproj index 7ee0691..eee818c 100644 --- a/Jellyfin.Plugin.Seasonals/Jellyfin.Plugin.Seasonals.csproj +++ b/Jellyfin.Plugin.Seasonals/Jellyfin.Plugin.Seasonals.csproj @@ -13,7 +13,7 @@ Jellyfin Seasonals Plugin CodeDevMLH 1.4.0.0 - https://github.com/CodeDevMLH/jellyfin-plugin-seasonals + https://github.com/CodeDevMLH/Jellyfin-Seasonals diff --git a/README.md b/README.md index fae7be3..0d9b4e4 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This plugin is based on my manual mod (see the [legacy branch](https://github.co - [Configuration](#configuration) - [Automatic Theme Selection](#automatic-theme-selection) - [Theme Settings](#theme-settings) - - [Build Process](#build-process) + - [Build The Plugin By Yourself](#build-the-plugin-by-yourself) - [Troubleshooting](#troubleshooting) - [Effects Not Showing](#effects-not-showing) - [Docker Permission Issues](#docker-permission-issues) @@ -77,9 +77,9 @@ To install this plugin, you will first need to add the repository in Jellyfin. 1. Open your Jellyfin Dashboard. 2. Navigate to **Plugins** > **Manage Repositories**. 3. Click the **+ New Repository** button to add a new repository. -4. Enter a name (e.g., "Seasonals") and paste the following URL into the 'Repository URL' field: +4. Enter a name for the repo and paste the following URL into the 'Repository URL' field: ```bash - https://raw.githubusercontent.com/CodeDevMLH/Jellyfin-Seasonals/refs/heads/main/manifest.json + https://raw.githubusercontent.com/CodeDevMLH/jellyfin-plugin-manifest/refs/heads/main/manifest.json ``` 5. Click **Add**. 6. Go to the **Available** tab at the top. @@ -135,7 +135,7 @@ If automatic selection is enabled, the following themes are applied based on the ## Theme Settings Each theme contains additional settings to customize its behavior. Expand the advanced configuration section to configure each theme, adjust parameters like particle count, animation speed etc. -## Build Process +## Build The Plugin By Yourself If you want to build the plugin yourself: