Floatplane channel plugin for Jellyfin 10.10.x: browse, HLS proxy, cookie session, CI release
Some checks failed
release / build-release (push) Has been cancelled
Some checks failed
release / build-release (push) Has been cancelled
- IChannel: creators -> sub-channels -> video posts (public listing API, search mapped) - IRequiresMediaInfoCallback -> signed proxy URLs; stream controller rewrites HLS so the AES-128 key is fetched server-side with the session cookie, segments stay on the CDN - delivery/info cached per token lifetime and throttled (~2/min) - config page: paste sails.sid + validate, extra creators, quality, search test - scripts/package.sh -> plugin folder + zip + md5 + manifest.json; Gitea release workflow - research docs, HAR analysis (HAR itself gitignored), install-pi5.sh Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System.Net.Http;
|
||||
using Jellyfin.Plugin.Chaosflix.Api;
|
||||
using Jellyfin.Plugin.Chaosflix.Channel;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Controller.Channels;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Controller.Plugins;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Jellyfin.Plugin.Chaosflix;
|
||||
|
||||
/// <summary>
|
||||
/// Registers plugin services in the DI container.
|
||||
/// </summary>
|
||||
public class ChaosflixServiceRegistrator : IPluginServiceRegistrator
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
||||
{
|
||||
// Redirect resolution needs the 302 itself, not the mirror behind it.
|
||||
serviceCollection
|
||||
.AddHttpClient(CccApiClient.RedirectClientName)
|
||||
.ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler { AllowAutoRedirect = false });
|
||||
|
||||
serviceCollection.AddSingleton<CccApiClient>();
|
||||
|
||||
// The status endpoint reports this channel's caches, so it has to reach the very
|
||||
// instance Jellyfin serves from — registering the class twice would give it a
|
||||
// second one with empty caches.
|
||||
serviceCollection.AddSingleton<ChaosflixChannel>();
|
||||
serviceCollection.AddSingleton<IChannel>(sp => sp.GetRequiredService<ChaosflixChannel>());
|
||||
// Jellyfin collects the similar-items providers out of the container, the same
|
||||
// way it collects channels.
|
||||
serviceCollection.AddSingleton<ISimilarItemsProvider, ChaosflixSimilarItems>();
|
||||
serviceCollection.AddHostedService<ChaosflixUserDataMirror>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user