The Free Software Media System - Server Backend & API
Fix incorrect path check in CleanupCollectionAndPlaylistPathsTask
Bond_009244a739675a1
diff --git a/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.cs b/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.csindex acd4bf9056..812df81922 100644--- a/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.cs+++ b/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionAndPlaylistPathsTask.cs@@ -115,9 +115,10 @@ public class CleanupCollectionAndPlaylistPathsTask : IScheduledTaskList<LinkedChild>? itemsToRemove = null;foreach (var linkedChild in folder.LinkedChildren){- if (!File.Exists(folder.Path))+ var path = linkedChild.Path;+ if (!File.Exists(path)){- _logger.LogInformation("Item in {FolderName} cannot be found at {ItemPath}", folder.Name, linkedChild.Path);+ _logger.LogInformation("Item in {FolderName} cannot be found at {ItemPath}", folder.Name, path);(itemsToRemove ??= new List<LinkedChild>()).Add(linkedChild);}}