mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-09 21:39:37 +00:00
Remove deleted episode from returned libraryItem object
This commit is contained in:
parent
5e2282ef76
commit
de5bc63d88
1 changed files with 3 additions and 0 deletions
|
|
@ -461,6 +461,9 @@ class PodcastController {
|
||||||
return res.sendStatus(404)
|
return res.sendStatus(404)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove it from the podcastEpisodes array
|
||||||
|
req.libraryItem.media.podcastEpisodes = req.libraryItem.media.podcastEpisodes.filter((ep) => ep.id !== episodeId)
|
||||||
|
|
||||||
if (hardDelete) {
|
if (hardDelete) {
|
||||||
const audioFile = episode.audioFile
|
const audioFile = episode.audioFile
|
||||||
// TODO: this will trigger the watcher. should maybe handle this gracefully
|
// TODO: this will trigger the watcher. should maybe handle this gracefully
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue