fix wr stuck
This commit is contained in:
parent
0d4ed138df
commit
e1ccf32c2d
1 changed files with 16 additions and 6 deletions
|
@ -415,14 +415,24 @@ var app = new Vue({
|
|||
this.getCurrentMediaItem()
|
||||
},
|
||||
getMediaPalette(data) {
|
||||
if (data != null && data['artwork'] != null){
|
||||
var palette = {
|
||||
'--bgColor': `#${data['artwork']['bgColor']}`,
|
||||
'--textColor1': `#${data['artwork']['textColor1']}`,
|
||||
'--textColor2': `#${data['artwork']['textColor2']}`,
|
||||
'--textColor3': `#${data['artwork']['textColor3']}`,
|
||||
'--textColor4': `#${data['artwork']['textColor4']}`
|
||||
'--bgColor': `#${data['artwork']['bgColor'] ?? '000000'}`,
|
||||
'--textColor1': `#${data['artwork']['textColor1'] ?? 'ffffff'}`,
|
||||
'--textColor2': `#${data['artwork']['textColor2'] ?? 'ffffff'}`,
|
||||
'--textColor3': `#${data['artwork']['textColor3'] ?? 'ffffff'}`,
|
||||
'--textColor4': `#${data['artwork']['textColor4'] ?? 'ffffff'}`
|
||||
}
|
||||
return palette } else {
|
||||
let u = {
|
||||
'--bgColor': `#${'000000'}`,
|
||||
'--textColor1': `#${ 'ffffff'}`,
|
||||
'--textColor2': `#${ 'ffffff'}`,
|
||||
'--textColor3': `#${ 'ffffff'}`,
|
||||
'--textColor4': `#${ 'ffffff'}`
|
||||
}
|
||||
return u
|
||||
}
|
||||
return palette
|
||||
},
|
||||
playAlbum(id, shuffle = false) {
|
||||
if (shuffle) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue