some fixes
This commit is contained in:
parent
8f31e15220
commit
60221d5e01
3 changed files with 7 additions and 4 deletions
|
@ -1554,8 +1554,11 @@ const app = new Vue({
|
|||
console.log(truekind,id)
|
||||
|
||||
try {
|
||||
if (parent == "librarysongs"){
|
||||
console.log("asc")
|
||||
if (app.library.songs.listing.length > childIndex && parent == "librarysongs"){
|
||||
console.log(item)
|
||||
if (item && ((app.library.songs.listing[childIndex].id != item.id))){
|
||||
childIndex = app.library.songs.listing.indexOf(item)
|
||||
}
|
||||
let query = app.library.songs.listing.map(item => new MusicKit.MediaItem(item));
|
||||
this.mk.clearQueue().then(function (_) {
|
||||
app.mk.queue.append(query)
|
||||
|
|
|
@ -259,7 +259,7 @@
|
|||
let childIndex = this.index
|
||||
console.log(item,parent,childIndex)
|
||||
if (parent != null && childIndex != null) {
|
||||
app.queueParentandplayChild(parent, childIndex);
|
||||
app.queueParentandplayChild(parent, childIndex, item);
|
||||
} else {
|
||||
app.playMediaItemById(item.attributes.playParams.id ?? item.id, item.attributes.playParams.kind ?? item.type, item.attributes.playParams.isLibrary ?? false, item.attributes.url)
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
:style="[(!(item.attributes.playParams ? (item.attributes.playParams.kind ?? (item.type ?? '')): (item.type ?? '')).includes('radioStation') && !(item.attributes.playParams ? (item.attributes.playParams.kind ?? (item.type ?? '')): (item.type ?? '')).includes('song')) ? {'margin': '140px','position': 'absolute',
|
||||
width: '40px',
|
||||
height: '40px',} :
|
||||
{margin: '35px', 'position': 'absolute','position': 'absolute',
|
||||
{margin: '35px', 'position': 'absolute',
|
||||
width: '120px',
|
||||
height: '120px',}]" @click="app.playMediaItem(item)">
|
||||
<%- include("../svg/play.svg") %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue