From ddf45735e0210e58aa6d114258ca258882d26d99 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Sat, 9 Dec 2023 22:27:48 +0100 Subject: [PATCH] [web] Fix for Spotify podcast episodes not treated properly in the modal dialog for tracks --- web-src/src/components/ModalDialogTrack.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/web-src/src/components/ModalDialogTrack.vue b/web-src/src/components/ModalDialogTrack.vue index 3ba2e341..3d6933cb 100644 --- a/web-src/src/components/ModalDialogTrack.vue +++ b/web-src/src/components/ModalDialogTrack.vue @@ -197,7 +197,11 @@ export default { watch: { track() { - if (this.track && this.track.data_kind === 'spotify') { + if ( + this.track && + this.track.data_kind === 'spotify' && + this.track.media_kind !== 'podcast' + ) { const spotifyApi = new SpotifyWebApi() spotifyApi.setAccessToken(this.$store.state.spotify.webapi_token) spotifyApi @@ -231,7 +235,10 @@ export default { }, open_album() { - if (this.track.data_kind === 'spotify') { + if ( + this.track.data_kind === 'spotify' && + this.track.media_kind !== 'podcast' + ) { this.$router.push({ name: 'music-spotify-album', params: { id: this.spotify_track.album.id }