add audiobooks back to book libraries

This commit is contained in:
dkanada committed 2026-04-10 22:10:54 +09:00
1 parent 6633524f99
commit fe47023193
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -11,7 +11,7 @@ import { BookSuggestionsSectionsView } from 'types/sections';
const booksTabContent: LibraryTabContent = {
viewType: LibraryTab.Books,
collectionType: CollectionType.Books,
itemType: [BaseItemKind.Book]
itemType: [BaseItemKind.AudioBook, BaseItemKind.Book]
};
const suggestionsTabContent: LibraryTabContent = {
@@ -23,13 +23,13 @@ const suggestionsTabContent: LibraryTabContent = {
const genresTabContent: LibraryTabContent = {
viewType: LibraryTab.Genres,
collectionType: CollectionType.Books,
itemType: [BaseItemKind.Book]
itemType: [BaseItemKind.AudioBook, BaseItemKind.Book]
};
const favoritesTabContent: LibraryTabContent = {
viewType: LibraryTab.Favorites,
collectionType: CollectionType.Books,
itemType: [BaseItemKind.Book]
itemType: [BaseItemKind.AudioBook, BaseItemKind.Book]
};
const booksTabMapping: LibraryTabMapping = {
+1 -1
View File
@@ -57,7 +57,7 @@ export const getSuggestionSections = (): Section[] => {
itemTypes: 'Book',
type: SectionType.LatestBooks,
parametersOptions: {
includeItemTypes: [BaseItemKind.Book]
includeItemTypes: [BaseItemKind.AudioBook, BaseItemKind.Book]
},
cardOptions: {
overlayPlayButton: true,