mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-22 11:54:32 +02:00
Add:Podcast search page
This commit is contained in:
parent
a907c88f66
commit
c6eb1096e8
6 changed files with 170 additions and 46 deletions
|
@ -9,15 +9,7 @@ class PodcastFinder {
|
|||
async search(term, options = {}) {
|
||||
if (!term) return null
|
||||
Logger.debug(`[iTunes] Searching for podcast with term "${term}"`)
|
||||
|
||||
var searchOptions = {
|
||||
term,
|
||||
media: 'podcast',
|
||||
entity: 'podcast',
|
||||
...options
|
||||
}
|
||||
|
||||
var results = await this.iTunesApi.search(searchOptions)
|
||||
var results = await this.iTunesApi.searchPodcasts(term, options)
|
||||
Logger.debug(`[iTunes] Podcast search for "${term}" returned ${results.length} results`)
|
||||
return results
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue