mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-16 13:51:14 +01:00
Add:Region support for audible chapter lookup
This commit is contained in:
1 parent
067d90474b
commit
ce4e48cbd7
5 files changed
+34
-12
No files matched your search
@@ -210,7 +210,8 @@ class MiscController {
|
||||
|
||||
async findChapters(req, res) {
|
||||
var asin = req.query.asin
|
||||
var chapterData = await this.bookFinder.findChapters(asin)
|
||||
var region = (req.query.region || 'us').toLowerCase()
|
||||
var chapterData = await this.bookFinder.findChapters(asin, region)
|
||||
if (!chapterData) {
|
||||
return res.json({ error: 'Chapters not found' })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user