mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Trying to be more safe
This commit is contained in:
parent
e125db4fe3
commit
0f0b89f344
@ -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…
x
Reference in New Issue
Block a user