mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[web] Fix for Spotify podcast episodes not treated properly in the modal dialog for tracks
This commit is contained in:
parent
b604f43a00
commit
ddf45735e0
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user