mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-18 19:08:13 +02:00
Add:Podcast search page
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user