mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Merge pull request #2784 from rasmuslos/patch-1
Fix custom metadata provider crash
This commit is contained in:
commit
b60f62cebf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user