mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-06 03:49:40 +00:00
Fix region parameter extraction in findChapters
This commit is contained in:
parent
8758c62ae2
commit
3e9ca51088
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ class SearchController {
|
||||||
try {
|
try {
|
||||||
const query = req.query
|
const query = req.query
|
||||||
const asin = getQueryParamAsString(query, 'asin', '', true)
|
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')
|
if (!isValidASIN(asin.toUpperCase())) throw new ValidationError('asin', 'is invalid')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue