Merge pull request #795 from jmt-gh/issue_794

Fix issue with unecessary empty search during match (Issue #794)
This commit is contained in:
advplyr 2022-06-30 15:48:07 -05:00 committed by GitHub
commit 1a32fbfeec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,11 +180,11 @@ class BookFinder {
Logger.debug(`Book Search: title: "${title}", author: "${author}", provider: ${provider}`) Logger.debug(`Book Search: title: "${title}", author: "${author}", provider: ${provider}`)
if (provider === 'google') { if (provider === 'google') {
books = this.getGoogleBooksResults(title, author) books = await this.getGoogleBooksResults(title, author)
} else if (provider === 'audible') { } else if (provider === 'audible') {
books = this.getAudibleResults(title, author, asin) books = await this.getAudibleResults(title, author, asin)
} else if (provider === 'itunes') { } else if (provider === 'itunes') {
books = this.getiTunesAudiobooksResults(title, author) books = await this.getiTunesAudiobooksResults(title, author)
} else if (provider === 'libgen') { } else if (provider === 'libgen') {
books = await this.getLibGenResults(title, author, maxTitleDistance, maxAuthorDistance) books = await this.getLibGenResults(title, author, maxTitleDistance, maxAuthorDistance)
} else if (provider === 'openlibrary') { } else if (provider === 'openlibrary') {