From f96c399e62575a78195b4eb6eace3ccd2393bdb3 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Tue, 17 Feb 2026 22:59:03 +0100 Subject: [PATCH] Fix cleanup for BDMV --- Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs b/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs index f9d31d8220..2048ad1b57 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs @@ -404,8 +404,9 @@ internal class MigrateLinkedChildren : IDatabaseMigrationRoutine if (accessiblePaths.Any(p => path.StartsWith(p, StringComparison.OrdinalIgnoreCase))) { - // Item is under an accessible library location — check if the file still exists - if (!File.Exists(path)) + // Item is under an accessible library location — check if it still exists + // Directory check covers BDMV/DVD items whose Path points to a folder + if (!File.Exists(path) && !Directory.Exists(path)) { staleIds.Add(item.Id); }