Fixed play next and play later on mediaitem-list-item
This commit is contained in:
parent
e78171b5a0
commit
56a5252413
2 changed files with 14 additions and 2 deletions
|
@ -87,13 +87,15 @@
|
|||
{
|
||||
"name": "Play Next",
|
||||
"action": function() {
|
||||
app.mk.queue.splice(0,0,[new MusicKit.MediaItem(self.item)])
|
||||
app.mk.playNext({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
|
||||
app.mk.queue._reindex()
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Play Later",
|
||||
"action": function() {
|
||||
app.mk.queue.append([new MusicKit.MediaItem(self.item)])
|
||||
app.mk.playLater({[self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id})
|
||||
app.mk.queue._reindex()
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue