mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-02 09:03:38 +02:00
Trying to be more safe
This commit is contained in:
parent
e125db4fe3
commit
0f0b89f344
1 changed files with 4 additions and 4 deletions
|
|
@ -809,11 +809,11 @@ namespace MediaBrowser.Controller.Entities
|
|||
|
||||
public QueryResult<BaseItem> GetItems(InternalItemsQuery query)
|
||||
{
|
||||
if (query.ItemIds.Length > 1)
|
||||
if (query.ItemIds.Length > 0)
|
||||
{
|
||||
var result = LibraryManager.GetItemsResult(query);
|
||||
|
||||
if (query.OrderBy.Count == 0)
|
||||
if (query.OrderBy.Count == 0 && query.ItemIds.Length > 1)
|
||||
{
|
||||
var ids = query.ItemIds.ToList();
|
||||
// Try to preserve order, "Play To" relies on it
|
||||
|
|
@ -829,11 +829,11 @@ namespace MediaBrowser.Controller.Entities
|
|||
{
|
||||
query.EnableTotalRecordCount = false;
|
||||
|
||||
if (query.ItemIds.Length > 1)
|
||||
if (query.ItemIds.Length > 0)
|
||||
{
|
||||
var result = LibraryManager.GetItemList(query);
|
||||
|
||||
if (query.OrderBy.Count == 0)
|
||||
if (query.OrderBy.Count == 0 && query.ItemIds.Length > 1)
|
||||
{
|
||||
var ids = query.ItemIds.ToList();
|
||||
// Try to preserve order, "Play To" relies on it
|
||||
|
|
|
|||
Loading…
Reference in a new issue