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

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
JPVenson 2023-06-27 16:05:07 +02:00 committed by GitHub
parent 8b6fca59a1
commit 0f60ec3013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ public class CleanupCollectionPathsTask : IScheduledTask
}
}
if (itemsToRemove.Any())
if (itemsToRemove.Count != 0)
{
_logger.LogDebug("Update Boxset {CollectionName}", collection.Name);
collection.LinkedChildren = collection.LinkedChildren.Except(itemsToRemove).ToArray();