[web] Fix for Spotify podcast episodes not treated properly in the modal dialog for tracks

This commit is contained in:
Alain Nussbaumer 2023-12-09 22:27:48 +01:00
parent b604f43a00
commit ddf45735e0

View File

@ -197,7 +197,11 @@ export default {
watch: { watch: {
track() { 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() const spotifyApi = new SpotifyWebApi()
spotifyApi.setAccessToken(this.$store.state.spotify.webapi_token) spotifyApi.setAccessToken(this.$store.state.spotify.webapi_token)
spotifyApi spotifyApi
@ -231,7 +235,10 @@ export default {
}, },
open_album() { open_album() {
if (this.track.data_kind === 'spotify') { if (
this.track.data_kind === 'spotify' &&
this.track.media_kind !== 'podcast'
) {
this.$router.push({ this.$router.push({
name: 'music-spotify-album', name: 'music-spotify-album',
params: { id: this.spotify_track.album.id } params: { id: this.spotify_track.album.id }