mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 23:32:49 +02:00
Add:Podcast episode match tab and find episode by title api route
This commit is contained in:
@@ -211,6 +211,12 @@ export default {
|
||||
libraryItemUpdated(libraryItem) {
|
||||
if (this.$store.state.selectedLibraryItem && this.$store.state.selectedLibraryItem.id === libraryItem.id) {
|
||||
this.$store.commit('setSelectedLibraryItem', libraryItem)
|
||||
if (this.$store.state.globals.selectedEpisode && libraryItem.mediaType === 'podcast') {
|
||||
const episode = libraryItem.media.episodes.find((ep) => ep.id === this.$store.state.globals.selectedEpisode.id)
|
||||
if (episode) {
|
||||
this.$store.commit('globals/setSelectedEpisode', episode)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$eventBus.$emit(`${libraryItem.id}_updated`, libraryItem)
|
||||
this.$store.commit('libraries/updateFilterDataWithItem', libraryItem)
|
||||
|
||||
Reference in New Issue
Block a user