ソースを参照

Merge pull request #4789 from crobibero/provider-search

Fix get provider id extension
Claus Vium 4 年 前
コミット
bc8f1bdcac
1 ファイル変更1 行追加1 行削除
  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>