diff --git a/server/controllers/PodcastController.js b/server/controllers/PodcastController.js index 1d1c106d..90b2c383 100644 --- a/server/controllers/PodcastController.js +++ b/server/controllers/PodcastController.js @@ -461,6 +461,9 @@ class PodcastController { 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) { const audioFile = episode.audioFile // TODO: this will trigger the watcher. should maybe handle this gracefully