mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-26 22:00:14 -05:00
Fix region parameter extraction in findChapters
This commit is contained in:
parent
8758c62ae2
commit
3e9ca51088
@ -187,7 +187,7 @@ class SearchController {
|
||||
try {
|
||||
const query = req.query
|
||||
const asin = getQueryParamAsString(query, 'asin', '', true)
|
||||
const region = getQueryParamAsString(req.query.region, 'us').toLowerCase()
|
||||
const region = getQueryParamAsString(query, 'region', 'us').toLowerCase()
|
||||
|
||||
if (!isValidASIN(asin.toUpperCase())) throw new ValidationError('asin', 'is invalid')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user