mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-15 00:09:38 +00:00
Shorten timeout and error message for remaining providers
This commit is contained in:
parent
26f949b9ba
commit
c6dabd2620
5 changed files with 12 additions and 12 deletions
|
|
@ -2,7 +2,7 @@ const axios = require('axios')
|
|||
const Logger = require('../Logger')
|
||||
|
||||
class GoogleBooks {
|
||||
#responseTimeout = 30000
|
||||
#responseTimeout = 10000
|
||||
|
||||
constructor() {}
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ class GoogleBooks {
|
|||
return res.data.items
|
||||
})
|
||||
.catch((error) => {
|
||||
Logger.error('[GoogleBooks] Volume search error', error)
|
||||
Logger.error('[GoogleBooks] Volume search error', error.message)
|
||||
return []
|
||||
})
|
||||
return items.map((item) => this.cleanResult(item))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue