feat(repo): add request plugin with jellyfin catalog manifest
Ship the plugin sources, release zip, and SeerrFin-style manifest.json so Jellyfin can install from the Gitea raw repository URL. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a1960d860
commit
bf6cd4540f
30 files changed
+3096
No files matched your search
@@ -0,0 +1,28 @@
|
||||
using Jellyfin.Plugin.Request.Hosting;
|
||||
using Jellyfin.Plugin.Request.Storage;
|
||||
using Jellyfin.Plugin.Request.Tmdb;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Controller.Plugins;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Jellyfin.Plugin.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Registers plugin services with the Jellyfin DI container.
|
||||
/// </summary>
|
||||
public sealed class PluginServiceRegistrator : IPluginServiceRegistrator
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
||||
{
|
||||
serviceCollection.AddSingleton<RequestStore>();
|
||||
serviceCollection.AddHttpClient(TmdbClient.HttpClientName, client =>
|
||||
{
|
||||
client.BaseAddress = new System.Uri("https://api.themoviedb.org/3/");
|
||||
client.Timeout = System.TimeSpan.FromSeconds(30);
|
||||
client.DefaultRequestHeaders.Accept.ParseAdd("application/json");
|
||||
});
|
||||
serviceCollection.AddSingleton<TmdbClient>();
|
||||
serviceCollection.AddHostedService<WebNavInjector>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user