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
commit 9b5bdc1fdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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