Fix:Match all books only matching first 100 #2096

This commit is contained in:
advplyr 2024-04-14 17:19:21 -05:00
parent c4fd4ff9de
commit 60c65008dc

View File

@ -359,7 +359,7 @@ class Scanner {
} }
offset += limit offset += limit
hasMoreChunks = libraryItems.length < limit hasMoreChunks = libraryItems.length === limit
let oldLibraryItems = libraryItems.map(li => Database.libraryItemModel.getOldLibraryItem(li)) let oldLibraryItems = libraryItems.map(li => Database.libraryItemModel.getOldLibraryItem(li))
const shouldContinue = await this.matchLibraryItemsChunk(library, oldLibraryItems, libraryScan) const shouldContinue = await this.matchLibraryItemsChunk(library, oldLibraryItems, libraryScan)