浏览代码

Fix get provider id extension

crobibero 4 年之前
父节点
当前提交
ca5f87c7eb
共有 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>