jellyfin-plugin-kitsu/Jellyfin.Plugin.Kitsu/Plugin.cs
2020-12-08 19:06:52 +01:00

37 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using Jellyfin.Plugin.Kitsu.Configuration;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
namespace Jellyfin.Plugin.Kitsu
{
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{
public override string Name => "Kitsu";
public override Guid Id => Guid.Parse("88d809e2-056b-47f4-9911-073949b9963f");
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) : base(applicationPaths, xmlSerializer)
{
Instance = this;
}
public static Plugin Instance { get; private set; }
public IEnumerable<PluginPageInfo> GetPages()
{
return new[]
{
new PluginPageInfo
{
Name = this.Name,
EmbeddedResourcePath = string.Format("{0}.Configuration.configPage.html", GetType().Namespace)
}
};
}
}
}