| | | 1 | | #nullable disable |
| | | 2 | | #pragma warning disable CS1591 |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Collections.Generic; |
| | | 6 | | using MediaBrowser.Common.Configuration; |
| | | 7 | | using MediaBrowser.Common.Plugins; |
| | | 8 | | using MediaBrowser.Controller.Plugins; |
| | | 9 | | using MediaBrowser.Model.Plugins; |
| | | 10 | | using MediaBrowser.Model.Serialization; |
| | | 11 | | |
| | | 12 | | namespace MediaBrowser.Providers.Plugins.AudioDb |
| | | 13 | | { |
| | | 14 | | public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages, IHasEmbeddedImage |
| | | 15 | | { |
| | | 16 | | public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) |
| | 21 | 17 | | : base(applicationPaths, xmlSerializer) |
| | | 18 | | { |
| | 21 | 19 | | Instance = this; |
| | 21 | 20 | | } |
| | | 21 | | |
| | | 22 | | public static Plugin Instance { get; private set; } |
| | | 23 | | |
| | 24 | 24 | | public override Guid Id => new Guid("a629c0da-fac5-4c7e-931a-7174223f14c8"); |
| | | 25 | | |
| | 29 | 26 | | public override string Name => "AudioDB"; |
| | | 27 | | |
| | 1 | 28 | | public override string Description => "Get artist and album metadata or images from AudioDB."; |
| | | 29 | | |
| | | 30 | | // TODO remove when plugin removed from server. |
| | 1 | 31 | | public override string ConfigurationFileName => "Jellyfin.Plugin.AudioDb.xml"; |
| | | 32 | | |
| | 21 | 33 | | public string ImageResourceName => GetType().Namespace + ".jellyfin-plugin-tadb.svg"; |
| | | 34 | | |
| | | 35 | | public IEnumerable<PluginPageInfo> GetPages() |
| | | 36 | | { |
| | 5 | 37 | | yield return new PluginPageInfo |
| | 5 | 38 | | { |
| | 5 | 39 | | Name = Name, |
| | 5 | 40 | | EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html" |
| | 5 | 41 | | }; |
| | 5 | 42 | | } |
| | | 43 | | } |
| | | 44 | | } |