2019-01-13 13:03:10 -07:00
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
2014-02-21 11:48:15 -07:00
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Music
|
|
|
|
{
|
|
|
|
public class AudioDbAlbumExternalId : IExternalId
|
|
|
|
{
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Name => "TheAudioDb";
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Key => MetadataProviders.AudioDbAlbum.ToString();
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string UrlFormatString => "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
|
|
|
|
{
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Name => "TheAudioDb Album";
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Key => MetadataProviders.AudioDbAlbum.ToString();
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string UrlFormatString => "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
|
|
|
|
{
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Name => "TheAudioDb";
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Key => MetadataProviders.AudioDbArtist.ToString();
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string UrlFormatString => "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
|
|
|
|
{
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Name => "TheAudioDb Artist";
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string Key => MetadataProviders.AudioDbArtist.ToString();
|
2014-02-21 11:48:15 -07:00
|
|
|
|
2019-01-13 13:31:14 -07:00
|
|
|
public string UrlFormatString => "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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|