small fixes
All checks were successful
🏗️ Build Plugin / build (push) Successful in 58s
Auto Release Plugin / build-and-release (push) Successful in 1m9s

This commit is contained in:
CodeDevMLH
2026-01-06 22:11:34 +01:00
parent 83bc5f6b1d
commit a30729cf0b
4 changed files with 11 additions and 9 deletions

View File

@@ -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}";

View File

@@ -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">

View File

@@ -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>