mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Fix library consolidation filter and implement podcast support
This commit is contained in:
parent
b3cdd880e1
commit
23034e6672
12 changed files with 153 additions and 14 deletions
|
|
@ -382,8 +382,12 @@ class BookScanner {
|
|||
}
|
||||
|
||||
existingLibraryItem.media = media
|
||||
|
||||
let libraryItemUpdated = false
|
||||
const isNotConsolidated = existingLibraryItem.checkIsNotConsolidated()
|
||||
if (existingLibraryItem.isNotConsolidated !== isNotConsolidated) {
|
||||
existingLibraryItem.isNotConsolidated = isNotConsolidated
|
||||
libraryItemUpdated = true
|
||||
}
|
||||
|
||||
// Save Book changes to db
|
||||
if (hasMediaChanges) {
|
||||
|
|
@ -560,6 +564,7 @@ class BookScanner {
|
|||
}
|
||||
|
||||
libraryItemObj.book = bookObject
|
||||
libraryItemObj.isNotConsolidated = Database.libraryItemModel.prototype.checkIsNotConsolidated.call(libraryItemObj)
|
||||
const libraryItem = await Database.libraryItemModel.create(libraryItemObj, {
|
||||
include: {
|
||||
model: Database.bookModel,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue