Working on the rss

This commit is contained in:
mfcar 2024-02-21 20:55:53 +00:00
parent ad79f71dc1
commit 2d98c27e62
No known key found for this signature in database
2 changed files with 39 additions and 3 deletions

View file

@ -542,4 +542,26 @@ module.exports = {
}
})
}
}
/** Get podcasts with feed url */
// async getPodcastsWithFeedUrl() {
// const podcasts = await Database.podcastModel.findAll({
// where: {
// feedURL: {
// [Sequelize.Op.ne]: null
// }
// },
// include: {
// model: Database.libraryItemModel,
// attributes: ['id', 'libraryId']
// }
// })
// return podcasts.map(podcast => {
// return {
// id: podcast.libraryItem.id,
// title: podcast.title,
// feedURL: podcast.feedURL
// }
// })
// }
}