fix(libraries): exclude episodes from mixed roots

close #1675
This commit is contained in:
edde746
2026-07-25 09:13:00 +02:00
parent 9a6f48a4cb
commit 0959cd3040
11 changed files with 129 additions and 31 deletions
@@ -760,12 +760,19 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<MediaItem, LibraryBrows
Future<LibraryPage<MediaItem>> fetchPage(int start, int size, AbortController? abort) async {
final client = context.getMediaClientForLibrary(widget.library);
final filterParams = _buildFilterParams();
final query = libraryQueryFromPlexMap(
final baseQuery = libraryQueryFromPlexMap(
map: filterParams,
libraryKind: filterParams.containsKey('type') ? null : widget.library.kind,
offset: start,
limit: size,
);
final query =
baseQuery.kind == null &&
baseQuery.includeKinds.isEmpty &&
_selectedGrouping == browseGroupingAll &&
widget.library.defaultBrowseKinds.isNotEmpty
? baseQuery.copyWith(includeKinds: widget.library.defaultBrowseKinds)
: baseQuery;
return client.fetchLibraryPagedContent(
widget.library.id,
query: query,