Shorten timeout and error message for remaining providers

This commit is contained in:
mikiher 2025-10-02 22:23:12 +03:00
parent 26f949b9ba
commit c6dabd2620
5 changed files with 12 additions and 12 deletions

View file

@ -28,7 +28,7 @@ const htmlSanitizer = require('../utils/htmlSanitizer')
*/
class iTunes {
#responseTimeout = 30000
#responseTimeout = 10000
constructor() {}
@ -63,7 +63,7 @@ class iTunes {
return response.data.results || []
})
.catch((error) => {
Logger.error(`[iTunes] search request error`, error)
Logger.error(`[iTunes] search request error`, error.message)
return []
})
}