using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
namespace MediaBrowser.Providers.Plugins.AudioDb
{
public class AudioDbAlbumExternalId : IExternalId
{
///
public string ProviderName => "TheAudioDb";
///
public string Key => MetadataProviders.AudioDbAlbum.ToString();
///
public ExternalIdMediaType Type => ExternalIdMediaType.General;
///
public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";
///
public bool Supports(IHasProviderIds item) => item is MusicAlbum;
}
public class AudioDbOtherAlbumExternalId : IExternalId
{
///
public string ProviderName => "TheAudioDb";
///
public string Key => MetadataProviders.AudioDbAlbum.ToString();
///
public ExternalIdMediaType Type => ExternalIdMediaType.Album;
///
public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio;
}
public class AudioDbArtistExternalId : IExternalId
{
///
public string ProviderName => "TheAudioDb";
///
public string Key => MetadataProviders.AudioDbArtist.ToString();
///
public ExternalIdMediaType Type => ExternalIdMediaType.Artist;
///
public string UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
///
public bool Supports(IHasProviderIds item) => item is MusicArtist;
}
public class AudioDbOtherArtistExternalId : IExternalId
{
///
public string ProviderName => "TheAudioDb";
///
public string Key => MetadataProviders.AudioDbArtist.ToString();
///
public ExternalIdMediaType Type => ExternalIdMediaType.OtherArtist;
///
public string UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
///
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
}
}