Skip to content

Commit

Permalink
[web] Fix for Spotify podcast episodes not treated properly in the mo…
Browse files Browse the repository at this point in the history
…dal dialog for tracks
  • Loading branch information
hacketiwack committed Dec 9, 2023
1 parent b604f43 commit ddf4573
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web-src/src/components/ModalDialogTrack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit ddf4573

Please sign in to comment.