jellyfin-server/MediaBrowser.Providers/Plugins/MusicBrainz/Plugin.cs

45 lines
1.4 KiB
C#
Raw Normal View History

#pragma warning disable CS1591
using System;
2020-02-22 06:04:52 +00:00
using System.Collections.Generic;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
namespace MediaBrowser.Providers.Plugins.MusicBrainz
{
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{
2020-02-27 16:43:57 +00:00
public static Plugin Instance { get; private set; }
public override Guid Id => new Guid("8c95c4d2-e50c-4fb0-a4f3-6c06ff0f9a1a");
public override string Name => "MusicBrainz";
public override string Description => "Get artist and album metadata from any MusicBrainz server.";
2020-02-29 07:24:07 +00:00
public const string DefaultServer = "https://musicbrainz.org";
2020-02-27 16:43:57 +00:00
2020-02-29 07:24:07 +00:00
public const long DefaultRateLimit = 2000u;
2020-02-27 16:43:57 +00:00
2020-07-22 14:19:26 +00:00
// TODO remove when plugin removed from server.
public override string ConfigurationFileName => "Jellyfin.Plugin.MusicBrainz.xml";
2020-02-22 06:04:52 +00:00
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"
};
}
}
}