34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System.Globalization;
|
|
using Jellyfin.Plugin.Vanguard.Configuration;
|
|
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Common.Plugins;
|
|
using MediaBrowser.Model.Plugins;
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
namespace Jellyfin.Plugin.Vanguard;
|
|
|
|
/// <summary>Vanguard Metadata plugin entry point.</summary>
|
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|
{
|
|
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
|
: base(applicationPaths, xmlSerializer)
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
public override string Name => "Vanguard Metadata";
|
|
|
|
public override Guid Id => Guid.Parse("d00ebd97-f987-4678-8089-c8f0f8a6ab3e");
|
|
|
|
public static Plugin? Instance { get; private set; }
|
|
|
|
public IEnumerable<PluginPageInfo> GetPages() =>
|
|
[
|
|
new PluginPageInfo
|
|
{
|
|
Name = Name,
|
|
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.configPage.html", GetType().Namespace)
|
|
}
|
|
];
|
|
}
|