live radio improvements
This commit is contained in:
parent
2036ab87a0
commit
bfbfa81eb9
3 changed files with 8 additions and 3 deletions
|
@ -922,11 +922,13 @@ const app = new Vue({
|
|||
}
|
||||
})
|
||||
|
||||
// Used for Live Radio stations to set Metadata
|
||||
this.mk.addEventListener(MusicKit.Events.timedMetadataDidChange, (e) => {
|
||||
app.mk.nowPlayingItem.attributes.name = e.title
|
||||
app.mk.nowPlayingItem.attributes.artistName = e.performer
|
||||
app.mk.nowPlayingItem.attributes.albumName = e.album
|
||||
app.currentArtUrl = e.links[0].url
|
||||
app.currentArtUrlRaw = e.links[0].url
|
||||
app.mk.nowPlayingItem._songId = e._adamId ? e._adamId : -1
|
||||
app.mk.nowPlayingItem.id = e._adamId ? e._adamId : -1
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue