Merge pull request #3822 from mikiher/episode-table-refresh-fix

Episode table refresh fixes
This commit is contained in:
advplyr
2025-01-13 16:12:38 -06:00
committed by GitHub
2 changed files with 19 additions and 5 deletions

View File

@@ -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