#region ========================================================================= USING ===================================================================================== using Lumina.Plugins.Contracts.Common.Models.DTO.Settings; using Lumina.Plugins.Contracts.Core.Plugins; using Lumina.Plugins.ID3.Common.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; #endregion namespace Lumina.Plugins.ID3.Core; /// /// Plugin that populates music metadata exclusively from the embedded tags of the audio files, without accessing the web. /// public sealed class Id3Plugin : IPlugin, IPluginServiceRegistrator { /// /// The unique identifier of the plugin. /// public static readonly Guid s_pluginId = new("a3f1c8d2-6b47-4e9a-8c15-2d7f9e4b6a03"); /// /// Gets the unique identifier of the plugin. /// public Guid Id => s_pluginId; /// /// Gets the display name of the plugin. /// public string Name => "ID3 Metadata"; /// /// Gets the author of the plugin. /// public string Author => "Lumina"; /// /// Gets the version of the plugin. /// public Version Version => new(1, 0, 0); /// /// Gets the description of the plugin. /// public string Description => "Populates artist, album and track metadata from the embedded tags of the audio files, without accessing the web."; /// /// Gets the settings schema of the plugin. /// /// The settings descriptors of the plugin. public IReadOnlyList GetSettingsSchema() { return []; } /// /// Registers the services required by the plugin. /// /// The service collection to register the services into. public void RegisterServices(IServiceCollection services) { services.AddId3MetadataProviders(pluginId: Id); } }