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 Name => "MusicBrainz";
///
public string Key => MetadataProviders.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 Name => "MusicBrainz";
///
public string Key => MetadataProviders.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 Name => "MusicBrainz";
///
public string Key => MetadataProviders.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 Name => "MusicBrainz";
///
public string Key => MetadataProviders.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 Name => "MusicBrainz";
///
public string Key => MetadataProviders.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 Name => "MusicBrainz";
///
public string Key => MetadataProviders.MusicBrainzTrack.ToString();
///
public ExternalIdMediaType Type => ExternalIdMediaType.Track;
///
public string UrlFormatString => Plugin.Instance.Configuration.Server + "/track/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio;
}
}