fix(jellyfin): restore collection query compatibility

This commit is contained in:
edde746
2026-05-18 19:24:07 +02:00
parent d3e8dcef86
commit d85a622fbe
2 changed files with 9 additions and 12 deletions
+7 -4
View File
@@ -1736,9 +1736,12 @@ void main() {
expect(itemsRequest.queryParameters['Limit'], '36');
expect(itemsRequest.queryParameters['SortBy'], 'SortName');
expect(itemsRequest.queryParameters['SortOrder'], 'Ascending');
expect(itemsRequest.queryParameters['Fields'], 'ChildCount,SortName,Overview');
expect(itemsRequest.queryParameters['EnableTotalRecordCount'], 'false');
expect(itemsRequest.queryParameters['EnableImageTypes'], 'Primary');
expect(
itemsRequest.queryParameters['Fields'],
'RecursiveItemCount,ChildCount,UserData,PremiereDate,OriginalTitle,SortName,Overview',
);
expect(itemsRequest.queryParameters.containsKey('EnableTotalRecordCount'), isFalse);
expect(itemsRequest.queryParameters['EnableImageTypes'], 'Primary,Backdrop,Thumb,Logo');
expect(itemsRequest.queryParameters['ImageTypeLimit'], '1');
});
@@ -1783,7 +1786,7 @@ void main() {
expect(itemsRequest!.queryParameters['ParentId'], 'lib-boxsets');
expect(itemsRequest!.queryParameters['StartIndex'], '20');
expect(itemsRequest!.queryParameters['Limit'], '10');
expect(itemsRequest!.queryParameters['EnableTotalRecordCount'], 'false');
expect(itemsRequest!.queryParameters.containsKey('EnableTotalRecordCount'), isFalse);
});
test('fetchCollectionsPage uses sentinel total when total count is missing', () async {