mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-22 19:59:37 +00:00
Fix:Remove podcast episode to also remove library file #636
This commit is contained in:
parent
4621c78573
commit
36bd6e649a
3 changed files with 21 additions and 2 deletions
|
|
@ -240,7 +240,11 @@ class Podcast {
|
|||
}
|
||||
|
||||
removeEpisode(episodeId) {
|
||||
this.episodes = this.episodes.filter(ep => ep.id !== episodeId)
|
||||
const episode = this.episodes.find(ep => ep.id === episodeId)
|
||||
if (episode) {
|
||||
this.episodes = this.episodes.filter(ep => ep.id !== episodeId)
|
||||
}
|
||||
return episode
|
||||
}
|
||||
|
||||
getPlaybackTitle(episodeId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue