mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-13 12:23:34 +01:00
1 parent
4021b6eca1
commit
308ccf470f
5 files changed
+211
-9
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user