mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Exclude virtual items from DateLastMediaAdded calculation (#11804)
This commit is contained in:
parent
4a54e5ddeb
commit
d89e5a0074
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user