Update Emby.Server.Implementations/ScheduledTasks/Tasks/CleanupCollectionPathsTask.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/9231/head
JPVenson 2 years ago committed by GitHub
parent 0ed4fd5759
commit 8b6fca59a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,7 +79,7 @@ public class CleanupCollectionPathsTask : IScheduledTask
var collection = collections[index]; var collection = collections[index];
_logger.LogDebug("Check Boxset {CollectionName}", collection.Name); _logger.LogDebug("Check Boxset {CollectionName}", collection.Name);
var itemsToRemove = new List<LinkedChild>(); var itemsToRemove = new List<LinkedChild>();
foreach (var collectionLinkedChild in collection.LinkedChildren.ToArray()) foreach (var collectionLinkedChild in collection.LinkedChildren)
{ {
if (!File.Exists(collectionLinkedChild.Path)) if (!File.Exists(collectionLinkedChild.Path))
{ {

Loading…
Cancel
Save