mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-19 01:19:38 +00:00
Add Podcast match tab and find covers
This commit is contained in:
parent
4edba20e9e
commit
3f6ed6dbf9
10 changed files with 113 additions and 20 deletions
|
|
@ -13,5 +13,13 @@ class PodcastFinder {
|
|||
Logger.debug(`[iTunes] Podcast search for "${term}" returned ${results.length} results`)
|
||||
return results
|
||||
}
|
||||
|
||||
async findCovers(term) {
|
||||
if (!term) return null
|
||||
Logger.debug(`[iTunes] Searching for podcast covers with term "${term}"`)
|
||||
var results = await this.iTunesApi.searchPodcasts(term)
|
||||
if (!results) return []
|
||||
return results.map(r => r.cover).filter(r => r)
|
||||
}
|
||||
}
|
||||
module.exports = PodcastFinder
|
||||
Loading…
Add table
Add a link
Reference in a new issue