diff --git a/lib/features/library_browser/view/library_authors_page.dart b/lib/features/library_browser/view/library_authors_page.dart index 59db1a4..c01cc8d 100644 --- a/lib/features/library_browser/view/library_authors_page.dart +++ b/lib/features/library_browser/view/library_authors_page.dart @@ -87,7 +87,7 @@ class AuthorCard extends HookConsumerWidget { // Build the image URL if imagePath is available String? imageUrl; if (imagePath != null && apiSettings.activeServer != null) { - imageUrl = '${apiSettings.activeServer!.url}/api/authors/${author.id}/image'; + imageUrl = '${apiSettings.activeServer!.serverUrl}/api/authors/${author.id}/image'; } return Card( @@ -111,7 +111,7 @@ class AuthorCard extends HookConsumerWidget { ? CachedNetworkImage( imageUrl: imageUrl, httpHeaders: { - 'Authorization': 'Bearer ${apiSettings.activeUser?.token}', + 'Authorization': 'Bearer ${apiSettings.activeUser?.authToken}', }, fit: BoxFit.cover, placeholder: (context, url) => Container( diff --git a/lib/features/library_browser/view/library_series_page.dart b/lib/features/library_browser/view/library_series_page.dart index c2516c2..50fbab1 100644 --- a/lib/features/library_browser/view/library_series_page.dart +++ b/lib/features/library_browser/view/library_series_page.dart @@ -62,8 +62,12 @@ class SeriesListTile extends StatelessWidget { // Extract series data based on variant final String seriesName = series.name; final int? numBooks = series.maybeMap( + (s) => null, // base variant numBooks: (s) => s.numBooks, books: (s) => s.books.length, + sequence: (s) => null, + shelf: (s) => s.books.length, + author: (s) => s.items?.length, orElse: () => null, );