Merge pull request #2784 from rasmuslos/patch-1

Fix custom metadata provider crash
This commit is contained in:
advplyr 2024-03-23 15:27:51 -05:00 committed by GitHub
commit b60f62cebf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,7 +158,7 @@ class BookFinder {
* @returns {Promise<Object[]>} * @returns {Promise<Object[]>}
*/ */
async getCustomProviderResults(title, author, isbn, providerSlug) { async getCustomProviderResults(title, author, isbn, providerSlug) {
const books = await this.customProviderAdapter.search(title, author, providerSlug, 'book') const books = await this.customProviderAdapter.search(title, author, isbn, providerSlug, 'book')
if (this.verbose) Logger.debug(`Custom provider '${providerSlug}' Search Results: ${books.length || 0}`) if (this.verbose) Logger.debug(`Custom provider '${providerSlug}' Search Results: ${books.length || 0}`)
return books return books