mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-23 01:09:26 +02:00
移动播客搜索地区配置到媒体库配置
This commit is contained in:
parent
1be34564f2
commit
fea78898a5
7 changed files with 25 additions and 15 deletions
|
@ -43,12 +43,15 @@ class SearchController {
|
|||
*/
|
||||
async findPodcasts(req, res) {
|
||||
const term = req.query.term
|
||||
const country = req.query.country
|
||||
if (!term) {
|
||||
Logger.error('[SearchController] Invalid request query param "term" is required')
|
||||
return res.status(400).send('Invalid request query param "term" is required')
|
||||
}
|
||||
|
||||
const results = await PodcastFinder.search(term)
|
||||
const results = await PodcastFinder.search(term, {
|
||||
country: country
|
||||
})
|
||||
res.json(results)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue