mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 11:21:36 +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
|
|
@ -408,6 +408,12 @@ class PodcastManager {
|
|||
queue: this.downloadQueue.filter(item => !libraryId || item.libraryId === libraryId).map(item => item.toJSONForClient())
|
||||
}
|
||||
}
|
||||
|
||||
async getPodcastsWithInboundFeed() {
|
||||
const podcasts = await Database.models.podcast.getAllInboundFeeds()
|
||||
Logger.info(`[PodcastManager] Fetched all podcasts with feed`)
|
||||
return podcasts
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PodcastManager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue