mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 23:36:38 +01:00
Fix cleanup for BDMV
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user