Await the response from audible for book search by ASIN

This commit is contained in:
jmt-gh 2022-06-29 19:18:00 -07:00
parent 5c4241aefe
commit 661778c02c

View File

@ -182,7 +182,7 @@ class BookFinder {
if (provider === 'google') {
books = this.getGoogleBooksResults(title, author)
} else if (provider === 'audible') {
books = this.getAudibleResults(title, author, asin)
books = await this.getAudibleResults(title, author, asin)
} else if (provider === 'itunes') {
books = this.getiTunesAudiobooksResults(title, author)
} else if (provider === 'libgen') {