浏览代码

Rename external id type 'None' to 'General'

Mark Monteiro 5 年之前
父节点
当前提交
e5c857ac36

+ 1 - 1
MediaBrowser.Controller/Providers/ExternalIdMediaType.cs

@@ -12,7 +12,7 @@ namespace MediaBrowser.Controller.Providers
         /// There is no specific media type associated with the external id, or the external provider only has one
         /// There is no specific media type associated with the external id, or the external provider only has one
         /// id type so there is no need to be specific.
         /// id type so there is no need to be specific.
         /// </summary>
         /// </summary>
-        None,
+        General,
 
 
         /// <summary>
         /// <summary>
         /// A music album.
         /// A music album.

+ 1 - 1
MediaBrowser.Providers/Manager/ProviderManager.cs

@@ -908,7 +908,7 @@ namespace MediaBrowser.Providers.Manager
                 {
                 {
                     Name = i.Name,
                     Name = i.Name,
                     Key = i.Key,
                     Key = i.Key,
-                    Type = i.Type == ExternalIdMediaType.None ? null : i.Type.ToString(),
+                    Type = i.Type == ExternalIdMediaType.General ? null : i.Type.ToString(),
                     UrlFormatString = i.UrlFormatString
                     UrlFormatString = i.UrlFormatString
                 });
                 });
         }
         }

+ 1 - 1
MediaBrowser.Providers/Movies/MovieExternalIds.cs

@@ -16,7 +16,7 @@ namespace MediaBrowser.Providers.Movies
         public string Key => MetadataProviders.Imdb.ToString();
         public string Key => MetadataProviders.Imdb.ToString();
 
 
         /// <inheritdoc />
         /// <inheritdoc />
-        public ExternalIdMediaType Type => ExternalIdMediaType.None;
+        public ExternalIdMediaType Type => ExternalIdMediaType.General;
 
 
         /// <inheritdoc />
         /// <inheritdoc />
         public string UrlFormatString => "https://www.imdb.com/title/{0}";
         public string UrlFormatString => "https://www.imdb.com/title/{0}";

+ 1 - 1
MediaBrowser.Providers/Music/MusicExternalIds.cs

@@ -13,7 +13,7 @@ namespace MediaBrowser.Providers.Music
         public string Key => "IMVDb";
         public string Key => "IMVDb";
 
 
         /// <inheritdoc />
         /// <inheritdoc />
-        public ExternalIdMediaType Type => ExternalIdMediaType.None;
+        public ExternalIdMediaType Type => ExternalIdMediaType.General;
 
 
         /// <inheritdoc />
         /// <inheritdoc />
         public string UrlFormatString => null;
         public string UrlFormatString => null;

+ 1 - 1
MediaBrowser.Providers/Plugins/AudioDb/ExternalIds.cs

@@ -13,7 +13,7 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
         public string Key => MetadataProviders.AudioDbAlbum.ToString();
         public string Key => MetadataProviders.AudioDbAlbum.ToString();
 
 
         /// <inheritdoc />
         /// <inheritdoc />
-        public ExternalIdMediaType Type => ExternalIdMediaType.None;
+        public ExternalIdMediaType Type => ExternalIdMediaType.General;
 
 
         /// <inheritdoc />
         /// <inheritdoc />
         public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";
         public string UrlFormatString => "https://www.theaudiodb.com/album/{0}";

+ 2 - 2
MediaBrowser.Providers/TV/TvExternalIds.cs

@@ -14,7 +14,7 @@ namespace MediaBrowser.Providers.TV
         public string Key => MetadataProviders.Zap2It.ToString();
         public string Key => MetadataProviders.Zap2It.ToString();
 
 
         /// <inheritdoc />
         /// <inheritdoc />
-        public ExternalIdMediaType Type => ExternalIdMediaType.None;
+        public ExternalIdMediaType Type => ExternalIdMediaType.General;
 
 
         /// <inheritdoc />
         /// <inheritdoc />
         public string UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}";
         public string UrlFormatString => "http://tvlistings.zap2it.com/overview.html?programSeriesId={0}";
@@ -32,7 +32,7 @@ namespace MediaBrowser.Providers.TV
         public string Key => MetadataProviders.Tvdb.ToString();
         public string Key => MetadataProviders.Tvdb.ToString();
 
 
         /// <inheritdoc />
         /// <inheritdoc />
-        public ExternalIdMediaType Type => ExternalIdMediaType.None;
+        public ExternalIdMediaType Type => ExternalIdMediaType.General;
 
 
         /// <inheritdoc />
         /// <inheritdoc />
         public string UrlFormatString => TvdbUtils.TvdbBaseUrl + "?tab=series&id={0}";
         public string UrlFormatString => TvdbUtils.TvdbBaseUrl + "?tab=series&id={0}";