2014-02-21 11:48:15 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
|
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Music
|
|
|
|
|
{
|
|
|
|
|
public class AudioDbAlbumExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "TheAudioDb"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.AudioDbAlbum.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2018-09-12 10:26:21 -07:00
|
|
|
|
get { return "https://www.theaudiodb.com/album/{0}"; }
|
2014-02-21 11:48:15 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is MusicAlbum;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AudioDbOtherAlbumExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "TheAudioDb Album"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.AudioDbAlbum.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2018-09-12 10:26:21 -07:00
|
|
|
|
get { return "https://www.theaudiodb.com/album/{0}"; }
|
2014-02-21 11:48:15 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is Audio;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AudioDbArtistExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "TheAudioDb"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.AudioDbArtist.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2018-09-12 10:26:21 -07:00
|
|
|
|
get { return "https://www.theaudiodb.com/artist/{0}"; }
|
2014-02-21 11:48:15 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is MusicArtist;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AudioDbOtherArtistExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
2014-02-21 14:58:00 -07:00
|
|
|
|
get { return "TheAudioDb Artist"; }
|
2014-02-21 11:48:15 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.AudioDbArtist.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2018-09-12 10:26:21 -07:00
|
|
|
|
get { return "https://www.theaudiodb.com/artist/{0}"; }
|
2014-02-21 11:48:15 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is Audio || item is MusicAlbum;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|