mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 16:24:45 +02:00
Add:RSS feed for series & cleanup empty series from db #1265
This commit is contained in:
parent
a364fe5031
commit
70ba2f7850
14 changed files with 282 additions and 32 deletions
|
@ -205,7 +205,7 @@ module.exports = {
|
|||
})
|
||||
})
|
||||
|
||||
var seriesItems = Object.values(_series)
|
||||
let seriesItems = Object.values(_series)
|
||||
|
||||
// check progress filter
|
||||
if (filterBy && filterBy.startsWith('progress.') && user) {
|
||||
|
@ -691,6 +691,11 @@ module.exports = {
|
|||
item.rssFeed = ctx.rssFeedManager.findFeedForEntityId(item.id)?.toJSONMinified() || null
|
||||
return item
|
||||
})
|
||||
} else if (shelf.type === 'series') {
|
||||
shelf.entities = shelf.entities.map((series) => {
|
||||
series.rssFeed = ctx.rssFeedManager.findFeedForEntityId(series.id)?.toJSONMinified() || null
|
||||
return series
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue