mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 17:54:54 +02:00
移动播客搜索地区配置到媒体库配置
This commit is contained in:
parent
1be34564f2
commit
fea78898a5
7 changed files with 25 additions and 15 deletions
|
@ -1,7 +1,6 @@
|
|||
const axios = require('axios')
|
||||
const Logger = require('../Logger')
|
||||
const htmlSanitizer = require('../utils/htmlSanitizer')
|
||||
const Database = require('../Database')
|
||||
|
||||
class iTunes {
|
||||
constructor() { }
|
||||
|
@ -18,7 +17,7 @@ class iTunes {
|
|||
entity: options.entity,
|
||||
lang: options.lang,
|
||||
limit: options.limit,
|
||||
country: options.country ? options.country : Database.serverSettings.podcastSearchRegion
|
||||
country: options.country
|
||||
}
|
||||
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