mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-24 18:01:58 +00:00
Backport pull request #11804 from jellyfin/release-10.9.z
Exclude virtual items from DateLastMediaAdded calculation
Original-merge: d89e5a0074
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
35bc6866d5
commit
39ae56db0a
1 changed files with 2 additions and 1 deletions
|
|
@ -398,7 +398,8 @@ namespace MediaBrowser.Providers.Manager
|
|||
|
||||
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;
|
||||
if (childDateCreated > dateLastMediaAdded)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue