mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
optimize collection folder
This commit is contained in:
parent
89a31e23ec
commit
96328b61a1
@ -1,5 +1,4 @@
|
|||||||
using MediaBrowser.Controller.Library;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@ -87,7 +86,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
return new List<LinkedChild>();
|
return new List<LinkedChild>();
|
||||||
}
|
}
|
||||||
|
|
||||||
return LibraryManager.RootFolder.RecursiveChildren
|
return LibraryManager.RootFolder.Children
|
||||||
.OfType<Folder>()
|
.OfType<Folder>()
|
||||||
.Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path))
|
.Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path))
|
||||||
.SelectMany(c => c.LinkedChildren).ToList();
|
.SelectMany(c => c.LinkedChildren).ToList();
|
||||||
@ -120,7 +119,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
|
|
||||||
var ourChildren =
|
var ourChildren =
|
||||||
LibraryManager.RootFolder.RecursiveChildren
|
LibraryManager.RootFolder.Children
|
||||||
.OfType<Folder>()
|
.OfType<Folder>()
|
||||||
.Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path))
|
.Where(i => i.Path != null && locationsDicionary.ContainsKey(i.Path))
|
||||||
.SelectMany(c => c.Children);
|
.SelectMany(c => c.Children);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user