Explorar o código

Merge pull request #4789 from crobibero/provider-search

Fix get provider id extension
Claus Vium %!s(int64=4) %!d(string=hai) anos
pai
achega
bc8f1bdcac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Model/Entities/ProviderIdsExtensions.cs

+ 1 - 1
MediaBrowser.Model/Entities/ProviderIdsExtensions.cs

@@ -49,7 +49,7 @@ namespace MediaBrowser.Model.Entities
             }
 
             instance.ProviderIds.TryGetValue(name, out string? id);
-            return id;
+            return string.IsNullOrEmpty(id) ? null : id;
         }
 
         /// <summary>