Creating a controller to return only the podcasts with feedURL

This commit is contained in:
mfcar 2023-09-24 21:20:01 +01:00
parent 2b3c3cd088
commit 9872937a99
No known key found for this signature in database
4 changed files with 19 additions and 0 deletions

View file

@ -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)