2020-06-19 18:24:13 +00:00
|
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
|
|
|
|
|
using System;
|
2020-03-02 17:07:31 +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.AudioDb
|
|
|
|
|
{
|
|
|
|
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|
|
|
|
{
|
2020-09-07 11:20:39 +00:00
|
|
|
|
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
|
|
|
|
: base(applicationPaths, xmlSerializer)
|
|
|
|
|
{
|
|
|
|
|
Instance = this;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-02 17:07:31 +00:00
|
|
|
|
public static Plugin Instance { get; private set; }
|
|
|
|
|
|
|
|
|
|
public override Guid Id => new Guid("a629c0da-fac5-4c7e-931a-7174223f14c8");
|
|
|
|
|
|
|
|
|
|
public override string Name => "AudioDB";
|
|
|
|
|
|
|
|
|
|
public override string Description => "Get artist and album metadata or images from AudioDB.";
|
|
|
|
|
|
2020-07-22 14:19:26 +00:00
|
|
|
|
// TODO remove when plugin removed from server.
|
|
|
|
|
public override string ConfigurationFileName => "Jellyfin.Plugin.AudioDb.xml";
|
|
|
|
|
|
2020-03-02 17:07:31 +00:00
|
|
|
|
public IEnumerable<PluginPageInfo> GetPages()
|
|
|
|
|
{
|
|
|
|
|
yield return new PluginPageInfo
|
|
|
|
|
{
|
|
|
|
|
Name = Name,
|
|
|
|
|
EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|