Exclude virtual items from DateLastMediaAdded calculation (#11804)

This commit is contained in:
Tim Eisele 2024-05-24 15:36:39 +02:00 committed by GitHub
parent 4a54e5ddeb
commit d89e5a0074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -398,7 +398,8 @@ namespace MediaBrowser.Providers.Manager
foreach (var child in children) foreach (var child in children)
{ {
if (!child.IsFolder) // Exclude any folders and virtual items since they are only placeholders
if (!child.IsFolder && !child.IsVirtualItem)
{ {
var childDateCreated = child.DateCreated; var childDateCreated = child.DateCreated;
if (childDateCreated > dateLastMediaAdded) if (childDateCreated > dateLastMediaAdded)