瀏覽代碼

Backport pull request #15858 from jellyfin/release-10.11.z

Fix playlist item de-duplication

Original-merge: 78e3702cb064fc664ed1a658ad534cf66f5373d3

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Bond_009 <bond.009@outlook.com>
Collin-Swish 22 小時之前
父節點
當前提交
c728e97bda
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Providers/Playlists/PlaylistMetadataService.cs

+ 1 - 1
MediaBrowser.Providers/Playlists/PlaylistMetadataService.cs

@@ -72,7 +72,7 @@ public class PlaylistMetadataService : MetadataService<Playlist, ItemLookupInfo>
             }
             }
             else
             else
             {
             {
-                targetItem.LinkedChildren = sourceItem.LinkedChildren.Concat(targetItem.LinkedChildren).Distinct().ToArray();
+                targetItem.LinkedChildren = sourceItem.LinkedChildren.Concat(targetItem.LinkedChildren).DistinctBy(i => i.Path).ToArray();
             }
             }
 
 
             if (replaceData || targetItem.Shares.Count == 0)
             if (replaceData || targetItem.Shares.Count == 0)