Merge pull request #3214 from danieladov/master

Order ids to merge to avoid stack overflow
This commit is contained in:
Bond-009 2020-05-31 21:57:57 +02:00 committed by GitHub
commit b89565110d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)