The Free Software Media System - Server Backend & API
Fix cleanup for BDMV
Shadowghostf96c399e6257
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs b/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.csindex f9d31d8220..2048ad1b57 100644--- a/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs+++ b/Jellyfin.Server/Migrations/Routines/MigrateLinkedChildren.cs@@ -404,8 +404,9 @@ internal class MigrateLinkedChildren : IDatabaseMigrationRoutineif (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);}