mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-07 20:39:38 +00:00
Reduce provider timout to 10 secs, Shorten error message
This commit is contained in:
parent
03da194953
commit
a164c17d38
4 changed files with 9 additions and 9 deletions
|
|
@ -3,7 +3,7 @@ const Logger = require('../Logger')
|
|||
const { isValidASIN } = require('../utils/index')
|
||||
|
||||
class Audible {
|
||||
#responseTimeout = 30000
|
||||
#responseTimeout = 10000
|
||||
|
||||
constructor() {
|
||||
this.regionMap = {
|
||||
|
|
@ -106,7 +106,7 @@ class Audible {
|
|||
return res.data
|
||||
})
|
||||
.catch((error) => {
|
||||
Logger.error('[Audible] ASIN search error', error)
|
||||
Logger.error('[Audible] ASIN search error', error.message)
|
||||
return null
|
||||
})
|
||||
}
|
||||
|
|
@ -158,7 +158,7 @@ class Audible {
|
|||
return Promise.all(res.data.products.map((result) => this.asinSearch(result.asin, region, timeout)))
|
||||
})
|
||||
.catch((error) => {
|
||||
Logger.error('[Audible] query search error', error)
|
||||
Logger.error('[Audible] query search error', error.message)
|
||||
return []
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue