Merge pull request #3214 from danieladov/master
Order ids to merge to avoid stack overflow
This commit is contained in:
commit
b89565110d
|
@ -128,6 +128,7 @@ namespace MediaBrowser.Api
|
||||||
var items = request.Ids.Split(',')
|
var items = request.Ids.Split(',')
|
||||||
.Select(i => _libraryManager.GetItemById(i))
|
.Select(i => _libraryManager.GetItemById(i))
|
||||||
.OfType<Video>()
|
.OfType<Video>()
|
||||||
|
.OrderBy(i => i.Id)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
if (items.Count < 2)
|
if (items.Count < 2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user