Fix:Refresh podcast episode table when new episodes are downloaded

This commit is contained in:
advplyr 2024-01-05 14:38:29 -06:00
parent fbe228a4f8
commit a0eb6bd3dc

View File

@ -87,7 +87,7 @@ export default {
watch: { watch: {
libraryItem: { libraryItem: {
handler() { handler() {
this.init() this.refresh()
} }
} }
}, },
@ -515,6 +515,10 @@ export default {
filterSortChanged() { filterSortChanged() {
this.init() this.init()
}, },
refresh() {
this.episodesCopy = this.episodes.map((ep) => ({ ...ep }))
this.init()
},
init() { init() {
this.destroyEpisodeComponents() this.destroyEpisodeComponents()
this.totalEpisodes = this.episodesList.length this.totalEpisodes = this.episodesList.length