small fixes
This commit is contained in:
@@ -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
|
||||
/// <returns>The configuration object.</returns>
|
||||
[HttpGet("Config")]
|
||||
[Produces("application/json")]
|
||||
public ActionResult<object> GetConfig()
|
||||
public ActionResult<PluginConfiguration> GetConfig()
|
||||
{
|
||||
return SeasonalsPlugin.Instance?.Configuration ?? new object();
|
||||
return SeasonalsPlugin.Instance?.Configuration ?? new PluginConfiguration();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -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}";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Template</title>
|
||||
<title>Seasonals Configuration</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="SeasonalsConfigPage" data-role="page" class="page type-interior pluginConfigurationPage" data-require="emby-input,emby-button,emby-select,emby-checkbox">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<Title>Jellyfin Seasonals Plugin</Title>
|
||||
<Authors>CodeDevMLH</Authors>
|
||||
<Version>1.4.0.0</Version>
|
||||
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-seasonals</RepositoryUrl>
|
||||
<RepositoryUrl>https://github.com/CodeDevMLH/Jellyfin-Seasonals</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user