2019-01-13 14:26:31 -05:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
2014-02-21 13:48:15 -05:00
|
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.Music
|
|
|
|
|
{
|
|
|
|
|
public class MusicBrainzReleaseGroupExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "MusicBrainz Release Group"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.MusicBrainzReleaseGroup.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2016-04-21 01:13:33 -04:00
|
|
|
|
get { return "https://musicbrainz.org/release-group/{0}"; }
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
2014-03-06 00:17:13 -05:00
|
|
|
|
return item is Audio || item is MusicAlbum;
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MusicBrainzAlbumArtistExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "MusicBrainz Album Artist"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.MusicBrainzAlbumArtist.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2016-04-21 01:13:33 -04:00
|
|
|
|
get { return "https://musicbrainz.org/artist/{0}"; }
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
2014-02-25 10:40:16 -05:00
|
|
|
|
return item is Audio;
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MusicBrainzAlbumExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "MusicBrainz Album"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.MusicBrainzAlbum.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2016-04-21 01:13:33 -04:00
|
|
|
|
get { return "https://musicbrainz.org/release/{0}"; }
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is Audio || item is MusicAlbum;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MusicBrainzArtistExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "MusicBrainz"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.MusicBrainzArtist.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2016-04-21 01:13:33 -04:00
|
|
|
|
get { return "https://musicbrainz.org/artist/{0}"; }
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is MusicArtist;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MusicBrainzOtherArtistExternalId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "MusicBrainz Artist"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.MusicBrainzArtist.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2016-04-21 01:13:33 -04:00
|
|
|
|
get { return "https://musicbrainz.org/artist/{0}"; }
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is Audio || item is MusicAlbum;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-01-27 17:45:59 -05:00
|
|
|
|
|
|
|
|
|
public class MusicBrainzTrackId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "MusicBrainz Track"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return MetadataProviders.MusicBrainzTrack.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
2016-04-21 01:13:33 -04:00
|
|
|
|
get { return "https://musicbrainz.org/track/{0}"; }
|
2015-01-27 17:45:59 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is Audio;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-09-12 13:26:21 -04:00
|
|
|
|
|
|
|
|
|
public class ImvdbId : IExternalId
|
|
|
|
|
{
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "IMVDb"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Key
|
|
|
|
|
{
|
|
|
|
|
get { return "IMVDb"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UrlFormatString
|
|
|
|
|
{
|
|
|
|
|
get { return null; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Supports(IHasProviderIds item)
|
|
|
|
|
{
|
|
|
|
|
return item is MusicVideo;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-02-21 13:48:15 -05:00
|
|
|
|
}
|