mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 02:05:06 +02:00
增加播客搜索地区配置
This commit is contained in:
parent
9f909b0d85
commit
56eff7a236
21 changed files with 36 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
const axios = require('axios')
|
||||
const Logger = require('../Logger')
|
||||
const htmlSanitizer = require('../utils/htmlSanitizer')
|
||||
const Database = require('../Database')
|
||||
|
||||
class iTunes {
|
||||
constructor() { }
|
||||
|
@ -17,7 +18,7 @@ class iTunes {
|
|||
entity: options.entity,
|
||||
lang: options.lang,
|
||||
limit: options.limit,
|
||||
country: options.country
|
||||
country: options.country ? options.country : Database.serverSettings.podcastSearchRegion
|
||||
}
|
||||
return axios.get('https://itunes.apple.com/search', { params: query }).then((response) => {
|
||||
return response.data.results || []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue