You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.0 KiB
67 lines
2.0 KiB
6 years ago
|
using MediaBrowser.Controller.Entities.Audio;
|
||
11 years ago
|
using MediaBrowser.Controller.Providers;
|
||
|
using MediaBrowser.Model.Entities;
|
||
|
|
||
5 years ago
|
namespace MediaBrowser.Providers.Plugins.AudioDb
|
||
11 years ago
|
{
|
||
|
public class AudioDbAlbumExternalId : IExternalId
|
||
|
{
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Name => "TheAudioDb";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Key => MetadataProviders.AudioDbAlbum.ToString();
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
5 years ago
|
public bool Supports(IHasProviderIds item) => item is MusicAlbum;
|
||
11 years ago
|
}
|
||
|
|
||
|
public class AudioDbOtherAlbumExternalId : IExternalId
|
||
|
{
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Name => "TheAudioDb Album";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Key => MetadataProviders.AudioDbAlbum.ToString();
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
|
public bool Supports(IHasProviderIds item) => item is Audio;
|
||
11 years ago
|
}
|
||
|
|
||
|
public class AudioDbArtistExternalId : IExternalId
|
||
|
{
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Name => "TheAudioDb";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Key => MetadataProviders.AudioDbArtist.ToString();
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
|
public bool Supports(IHasProviderIds item) => item is MusicArtist;
|
||
11 years ago
|
}
|
||
|
|
||
|
public class AudioDbOtherArtistExternalId : IExternalId
|
||
|
{
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Name => "TheAudioDb Artist";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string Key => MetadataProviders.AudioDbArtist.ToString();
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
6 years ago
|
public string UrlFormatString => "https://www.theaudiodb.com/artist/{0}";
|
||
11 years ago
|
|
||
5 years ago
|
/// <inheritdoc />
|
||
5 years ago
|
public bool Supports(IHasProviderIds item) => item is Audio || item is MusicAlbum;
|
||
11 years ago
|
}
|
||
|
}
|