mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-07 12:29:36 +00:00
Merge pull request #4870 from Vito0912/patch-1
Fix region parameter extraction in findChapters
This commit is contained in:
commit
d8e272e091
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