mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 03:11:34 +00:00
Creating a controller to return only the podcasts with feedURL
This commit is contained in:
parent
2b3c3cd088
commit
9872937a99
4 changed files with 19 additions and 0 deletions
|
|
@ -115,6 +115,13 @@ class PodcastController {
|
|||
res.json({ podcast })
|
||||
}
|
||||
|
||||
async getPodcastsWithInboundFeed(req, res) {
|
||||
const podcasts = await Database.podcastModel.getAllInboundFeeds()
|
||||
res.json({
|
||||
podcasts
|
||||
})
|
||||
}
|
||||
|
||||
async checkPodcastFeed(req, res) {
|
||||
const libraryItem = req.libraryItem
|
||||
const podcast = await getPodcastFeed(libraryItem.media.metadata.feedUrl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue