mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-20 18:59:37 +00:00
Update jsdocs for search podcasts
This commit is contained in:
parent
2ec52a7a45
commit
180c328ed1
5 changed files with 62 additions and 8 deletions
|
|
@ -6,10 +6,16 @@ class PodcastFinder {
|
|||
this.iTunesApi = new iTunes()
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string} term
|
||||
* @param {{country:string}} options
|
||||
* @returns {Promise<import('../providers/iTunes').iTunesPodcastSearchResult[]>}
|
||||
*/
|
||||
async search(term, options = {}) {
|
||||
if (!term) return null
|
||||
Logger.debug(`[iTunes] Searching for podcast with term "${term}"`)
|
||||
var results = await this.iTunesApi.searchPodcasts(term, options)
|
||||
const 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