mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-13 12:23:34 +01:00
Merge pull request #5430 from boqiaok/fix/issue-5176-audible-products
Fix Audible search when products are null
This commit is contained in:
1 file changed
+1
-1
@@ -160,7 +160,7 @@ class Audible {
|
||||
timeout
|
||||
})
|
||||
.then((res) => {
|
||||
if (!res?.data?.products) return null
|
||||
if (!res?.data?.products) return []
|
||||
return Promise.all(res.data.products.map((result) => this.asinSearch(result.asin, region, timeout)))
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
Reference in new issue
Block a user