MusicBrainzArtistExternalId.cs 809 B

123456789101112131415161718192021222324252627
  1. using MediaBrowser.Controller.Entities.Audio;
  2. using MediaBrowser.Controller.Providers;
  3. using MediaBrowser.Model.Entities;
  4. using MediaBrowser.Model.Providers;
  5. namespace MediaBrowser.Providers.Plugins.MusicBrainz;
  6. /// <summary>
  7. /// MusicBrainz artist external id.
  8. /// </summary>
  9. public class MusicBrainzArtistExternalId : IExternalId
  10. {
  11. /// <inheritdoc />
  12. public string ProviderName => "MusicBrainz";
  13. /// <inheritdoc />
  14. public string Key => MetadataProvider.MusicBrainzArtist.ToString();
  15. /// <inheritdoc />
  16. public ExternalIdMediaType? Type => ExternalIdMediaType.Artist;
  17. /// <inheritdoc />
  18. public string UrlFormatString => Plugin.Instance!.Configuration.Server + "/artist/{0}";
  19. /// <inheritdoc />
  20. public bool Supports(IHasProviderIds item) => item is MusicArtist;
  21. }