Some checks failed
Publish Release / release (push) Failing after 17s
Adapted from Trailers4Jellyfin: keeps TMDB/YouTube trailer downloading, the scheduled task, language/source/date filters, and trailer rotation, but drops cinema-mode/IIntroProvider entirely. Each trailer now ships in its own fake-movie folder (placeholder video + locked NFO + trailer) for use with a Cinema Mode / trailer pre-roll plugin.
21 lines
820 B
C#
21 lines
820 B
C#
using Jellyfin.Plugin.CinemaTrailers4Jellyfins.ScheduledTasks;
|
|
using Jellyfin.Plugin.CinemaTrailers4Jellyfins.Services;
|
|
using MediaBrowser.Controller;
|
|
using MediaBrowser.Controller.Plugins;
|
|
using MediaBrowser.Model.Tasks;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Jellyfin.Plugin.CinemaTrailers4Jellyfins
|
|
{
|
|
public class PluginServiceRegistrator : IPluginServiceRegistrator
|
|
{
|
|
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
|
{
|
|
serviceCollection.AddSingleton<TmdbService>();
|
|
serviceCollection.AddSingleton<TrailerDownloadService>();
|
|
serviceCollection.AddSingleton<FakeMovieService>();
|
|
serviceCollection.AddTransient<IScheduledTask, DownloadTrailersTask>();
|
|
}
|
|
}
|
|
}
|