mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-23 01:09:26 +02:00
Update new library scanner for scanning in new books
This commit is contained in:
parent
75276f5a44
commit
0ecfdab463
13 changed files with 694 additions and 35 deletions
|
@ -230,8 +230,7 @@ class MiscController {
|
|||
let numItemsUpdated = 0
|
||||
|
||||
// Update filter data
|
||||
Database.removeTagFromFilterData(tag)
|
||||
Database.addTagToFilterData(newTag)
|
||||
Database.replaceTagInFilterData(tag, newTag)
|
||||
|
||||
const libraryItemsWithTag = await libraryItemFilters.getAllLibraryItemsWithTags([tag, newTag])
|
||||
for (const libraryItem of libraryItemsWithTag) {
|
||||
|
@ -364,8 +363,7 @@ class MiscController {
|
|||
let numItemsUpdated = 0
|
||||
|
||||
// Update filter data
|
||||
Database.removeGenreFromFilterData(genre)
|
||||
Database.addGenreToFilterData(newGenre)
|
||||
Database.replaceGenreInFilterData(genre, newGenre)
|
||||
|
||||
const libraryItemsWithGenre = await libraryItemFilters.getAllLibraryItemsWithGenres([genre, newGenre])
|
||||
for (const libraryItem of libraryItemsWithGenre) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue