mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Fix:Save RSS feed url passed in by user instead of using the RSS feed returned from the request #634
This commit is contained in:
parent
b2aab06e01
commit
96232676cb
@ -109,10 +109,8 @@ class PodcastController {
|
|||||||
return res.status(500).send('Invalid podcast RSS feed')
|
return res.status(500).send('Invalid podcast RSS feed')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!payload.podcast.metadata.feedUrl) {
|
// RSS feed may be a private RSS feed
|
||||||
// Not every RSS feed will put the feed url in their metadata
|
|
||||||
payload.podcast.metadata.feedUrl = url
|
payload.podcast.metadata.feedUrl = url
|
||||||
}
|
|
||||||
|
|
||||||
res.json(payload)
|
res.json(payload)
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user