mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-08 23:04:51 +02:00
移动播客搜索地区配置到媒体库配置
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user