#pragma warning disable CS1591
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
using MediaBrowser.Providers.Plugins.MusicBrainz;
namespace MediaBrowser.Providers.Music
{
public class MusicBrainzReleaseGroupExternalId : IExternalId
{
///
public string ProviderName => "MusicBrainz";
///
public string Key => MetadataProvider.MusicBrainzReleaseGroup.ToString();
///
public ExternalIdMediaType? Type => ExternalIdMediaType.ReleaseGroup;
///
public string UrlFormatString => Plugin.Instance.Configuration.Server + "/release-group/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
}
public class MusicBrainzAlbumArtistExternalId : IExternalId
{
///
public string ProviderName => "MusicBrainz";
///
public string Key => MetadataProvider.MusicBrainzAlbumArtist.ToString();
///
public ExternalIdMediaType? Type => ExternalIdMediaType.AlbumArtist;
///
public string UrlFormatString => Plugin.Instance.Configuration.Server + "/artist/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio;
}
public class MusicBrainzAlbumExternalId : IExternalId
{
///
public string ProviderName => "MusicBrainz";
///
public string Key => MetadataProvider.MusicBrainzAlbum.ToString();
///
public ExternalIdMediaType? Type => ExternalIdMediaType.Album;
///
public string UrlFormatString => Plugin.Instance.Configuration.Server + "/release/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
}
public class MusicBrainzArtistExternalId : IExternalId
{
///
public string ProviderName => "MusicBrainz";
///
public string Key => MetadataProvider.MusicBrainzArtist.ToString();
///
public ExternalIdMediaType? Type => ExternalIdMediaType.Artist;
///
public string UrlFormatString => Plugin.Instance.Configuration.Server + "/artist/{0}";
///
public bool Supports(IHasProviderIds item) => item is MusicArtist;
}
public class MusicBrainzOtherArtistExternalId : IExternalId
{
///
public string ProviderName => "MusicBrainz";
///
public string Key => MetadataProvider.MusicBrainzArtist.ToString();
///
public ExternalIdMediaType? Type => ExternalIdMediaType.OtherArtist;
///
public string UrlFormatString => Plugin.Instance.Configuration.Server + "/artist/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
}
public class MusicBrainzTrackId : IExternalId
{
///
public string ProviderName => "MusicBrainz";
///
public string Key => MetadataProvider.MusicBrainzTrack.ToString();
///
public ExternalIdMediaType? Type => ExternalIdMediaType.Track;
///
public string UrlFormatString => Plugin.Instance.Configuration.Server + "/track/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio;
}
}