mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-24 09:49:24 +02:00
Add rss details configuration
This commit is contained in:
parent
d7b287bfed
commit
0d3e6b1d0a
15 changed files with 211 additions and 19 deletions
|
@ -18,7 +18,7 @@ class RSSFeedController {
|
|||
}
|
||||
|
||||
// Check request body options exist
|
||||
if (!options.serverAddress || !options.slug) {
|
||||
if (!options.serverAddress || !options.slug || options.metadataDetails == null) {
|
||||
Logger.error(`[RSSFeedController] Invalid request body to open RSS feed`)
|
||||
return res.status(400).send('Invalid request body')
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ class RSSFeedController {
|
|||
if (!collection) return res.sendStatus(404)
|
||||
|
||||
// Check request body options exist
|
||||
if (!options.serverAddress || !options.slug) {
|
||||
if (!options.serverAddress || !options.slug || options.metadataDetails == null) {
|
||||
Logger.error(`[RSSFeedController] Invalid request body to open RSS feed`)
|
||||
return res.status(400).send('Invalid request body')
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ class RSSFeedController {
|
|||
if (!series) return res.sendStatus(404)
|
||||
|
||||
// Check request body options exist
|
||||
if (!options.serverAddress || !options.slug) {
|
||||
if (!options.serverAddress || !options.slug || options.metadataDetails == null) {
|
||||
Logger.error(`[RSSFeedController] Invalid request body to open RSS feed`)
|
||||
return res.status(400).send('Invalid request body')
|
||||
}
|
||||
|
@ -134,4 +134,4 @@ class RSSFeedController {
|
|||
next()
|
||||
}
|
||||
}
|
||||
module.exports = new RSSFeedController()
|
||||
module.exports = new RSSFeedController()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue