Await the responses from googlebooks and itunes

This commit is contained in:
jmt-gh 2022-06-29 19:19:58 -07:00
parent 661778c02c
commit b0684b6f1b

View File

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