mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Fix:Find books api endpoint #225
This commit is contained in:
parent
c711c2ef82
commit
3d6bbeb3cd
@ -177,10 +177,7 @@ class ApiController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async findBooks(req, res) {
|
async findBooks(req, res) {
|
||||||
if (req.method === 'match') {
|
var provider = req.query.provider || 'google'
|
||||||
|
|
||||||
} else if (req.method === 'cover')
|
|
||||||
var provider = req.query.provider || 'google'
|
|
||||||
var title = req.query.title || ''
|
var title = req.query.title || ''
|
||||||
var author = req.query.author || ''
|
var author = req.query.author || ''
|
||||||
var results = await this.bookFinder.search(provider, title, author)
|
var results = await this.bookFinder.search(provider, title, author)
|
||||||
|
Loading…
Reference in New Issue
Block a user