From 826e21ecc85be03e15c4d2ad2f403ccb4dc2068e Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Fri, 27 Feb 2026 13:51:51 +0100 Subject: Fix LinkedAlternativeVersion validation --- MediaBrowser.Controller/Entities/Folder.cs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index dce5664672..cc322d0ddd 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -510,13 +510,6 @@ namespace MediaBrowser.Controller.Entities // Skip items that are alternate versions of another video if (item is Video video) { - // Check via PrimaryVersionId - if (video.PrimaryVersionId.HasValue) - { - Logger.LogDebug("Item is an alternate version (via PrimaryVersionId), skipping deletion: {Path}", item.Path ?? item.Name); - continue; - } - // Check if path is in LocalAlternateVersions of any valid child if (!string.IsNullOrEmpty(item.Path) && alternateVersionPaths.Contains(item.Path)) { -- cgit v1.2.3