mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45: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: {
|
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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user