mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-08 08:24:59 +02: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)
|
||||
}
|
||||
|
||||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue