mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-04 21:20:09 +01:00
Fix:Rescan filter out items not updated #577
This commit is contained in:
parent
0137f6dfeb
commit
290340a385
@ -291,12 +291,13 @@ class Scanner {
|
|||||||
return this.rescanLibraryItem(lid, libraryScan)
|
return this.rescanLibraryItem(lid, libraryScan)
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
itemsUpdated = itemsUpdated.filter(li => li) // Filter out nulls
|
||||||
|
|
||||||
for (const libraryItem of itemsUpdated) {
|
for (const libraryItem of itemsUpdated) {
|
||||||
// Temp authors & series are inserted - create them if found
|
// Temp authors & series are inserted - create them if found
|
||||||
await this.createNewAuthorsAndSeries(libraryItem)
|
await this.createNewAuthorsAndSeries(libraryItem)
|
||||||
}
|
}
|
||||||
|
|
||||||
itemsUpdated = itemsUpdated.filter(li => li) // Filter out nulls
|
|
||||||
if (itemsUpdated.length) {
|
if (itemsUpdated.length) {
|
||||||
libraryScan.resultsUpdated += itemsUpdated.length
|
libraryScan.resultsUpdated += itemsUpdated.length
|
||||||
await this.db.updateLibraryItems(itemsUpdated)
|
await this.db.updateLibraryItems(itemsUpdated)
|
||||||
@ -728,16 +729,14 @@ class Scanner {
|
|||||||
var libraryItem = itemsInLibrary[i]
|
var libraryItem = itemsInLibrary[i]
|
||||||
|
|
||||||
if (libraryItem.media.metadata.asin && library.settings.skipMatchingMediaWithAsin) {
|
if (libraryItem.media.metadata.asin && library.settings.skipMatchingMediaWithAsin) {
|
||||||
Logger.debug(`[Scanner] matchLibraryItems: Skipping "${
|
Logger.debug(`[Scanner] matchLibraryItems: Skipping "${libraryItem.media.metadata.title
|
||||||
libraryItem.media.metadata.title
|
}" because it already has an ASIN (${i + 1} of ${itemsInLibrary.length})`)
|
||||||
}" because it already has an ASIN (${i + 1} of ${itemsInLibrary.length})`)
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (libraryItem.media.metadata.isbn && library.settings.skipMatchingMediaWithIsbn) {
|
if (libraryItem.media.metadata.isbn && library.settings.skipMatchingMediaWithIsbn) {
|
||||||
Logger.debug(`[Scanner] matchLibraryItems: Skipping "${
|
Logger.debug(`[Scanner] matchLibraryItems: Skipping "${libraryItem.media.metadata.title
|
||||||
libraryItem.media.metadata.title
|
}" because it already has an ISBN (${i + 1} of ${itemsInLibrary.length})`)
|
||||||
}" because it already has an ISBN (${i + 1} of ${itemsInLibrary.length})`)
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user