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.
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Jellyfin.Plugin.CinemaTrailers4Jellyfins.Configuration;
|
|
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Common.Plugins;
|
|
using MediaBrowser.Model.Plugins;
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
namespace Jellyfin.Plugin.CinemaTrailers4Jellyfins
|
|
{
|
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|
{
|
|
public override string Name => "CinemaTrailers4Jellyfins";
|
|
|
|
public override Guid Id => Guid.Parse("b581493e-1046-40ed-b6dc-cb8027624984");
|
|
|
|
public static Plugin Instance { get; private set; } = null!;
|
|
|
|
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
|
: base(applicationPaths, xmlSerializer)
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
public IEnumerable<PluginPageInfo> GetPages()
|
|
{
|
|
yield return new PluginPageInfo
|
|
{
|
|
Name = Name,
|
|
EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html"
|
|
};
|
|
}
|
|
}
|
|
}
|