mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix another issue with DLNA responses not properly paginating
The `UserRootFolder.GetItemsInternal` method now applies any sorting and pagination requested by the `InternalItemsQuery` that was passed to it. Previous pagination fix: #2304 Original issue #2303
This commit is contained in:
parent
8ff07e17e6
commit
d3de91dab6
@ -60,14 +60,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
PresetViews = query.PresetViews
|
PresetViews = query.PresetViews
|
||||||
});
|
});
|
||||||
|
|
||||||
var itemsArray = result;
|
return UserViewBuilder.SortAndPage(result, null, query, LibraryManager, true);
|
||||||
var totalCount = itemsArray.Length;
|
|
||||||
|
|
||||||
return new QueryResult<BaseItem>
|
|
||||||
{
|
|
||||||
TotalRecordCount = totalCount,
|
|
||||||
Items = itemsArray //TODO Fix The co-variant conversion between Folder[] and BaseItem[], this can generate runtime issues.
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetChildCount(User user)
|
public override int GetChildCount(User user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user