Remove 'General' as an ExternalIdMediaType, and instead use 'null' to represent a general external id type

This commit is contained in:
Mark Monteiro
2020-05-23 16:08:51 -04:00
parent 07897ec7af
commit 4f6e5591ec
12 changed files with 27 additions and 29 deletions

View File

@@ -20,11 +20,13 @@ namespace MediaBrowser.Model.Providers
/// <summary>
/// Gets or sets the specific media type for this id. This is used to distinguish between the different
/// external id types for providers with multiple ids.
/// A null value indicates there is no specific media type associated with the external id, or this is the
/// default id for the external provider so there is no need to specify a type.
/// </summary>
/// <remarks>
/// This can be used along with the <see cref="Name"/> to localize the external id on the client.
/// </remarks>
public ExternalIdMediaType Type { get; set; }
public ExternalIdMediaType? Type { get; set; }
/// <summary>
/// Gets or sets the URL format string.

View File

@@ -8,12 +8,6 @@ namespace MediaBrowser.Model.Providers
/// </remarks>
public enum ExternalIdMediaType
{
/// <summary>
/// There is no specific media type associated with the external id, or this is the default id for the external
/// provider so there is no need to specify a type.
/// </summary>
General = 0,
/// <summary>
/// A music album.
/// </summary>