mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-21 08:36:03 +02:00
parent
4021b6eca1
commit
308ccf470f
5 changed files with 211 additions and 9 deletions
|
@ -26,7 +26,16 @@ class CollectionController {
|
|||
}
|
||||
|
||||
findOne(req, res) {
|
||||
res.json(req.collection.toJSONExpanded(this.db.libraryItems))
|
||||
const includeEntities = (req.query.include || '').split(',')
|
||||
|
||||
const collectionExpanded = req.collection.toJSONExpanded(this.db.libraryItems)
|
||||
|
||||
if (includeEntities.includes('rssfeed')) {
|
||||
const feedData = this.rssFeedManager.findFeedForEntityId(collectionExpanded.id)
|
||||
collectionExpanded.rssFeed = feedData ? feedData.toJSONMinified() : null
|
||||
}
|
||||
|
||||
res.json(collectionExpanded)
|
||||
}
|
||||
|
||||
async update(req, res) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue