aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-02-17 22:59:03 +0100
committerShadowghost <Ghost_of_Stone@web.de>2026-02-17 22:59:03 +0100
commitf96c399e62575a78195b4eb6eace3ccd2393bdb3 (patch)
treeb909d5a5d070f04f2a524a2bd33d5981224824fd
parent0f75518287f79c4c9aa3c009a93bd4ad65e2bab1 (diff)
Fix cleanup for BDMV
-rw-r--r--Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs5
1 files 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);
}