fix
This commit is contained in:
parent
eec8e39556
commit
0b76426ca6
1 changed files with 2 additions and 2 deletions
|
@ -50,10 +50,10 @@ const MusicKitInterop = {
|
|||
attributes.artwork.url = (attributes?.artwork?.url ?? '').replace(`{f}`, "png");
|
||||
attributes.playParams = attributes?.playParams ?? {id: 'no-id-found'};
|
||||
attributes.playParams.id = attributes?.playParams?.id ?? 'no-id-found';
|
||||
attributes.playParams.songid = nowPlayingItem._songId ?? 'no-id-found'
|
||||
attributes.playParams.songid = nowPlayingItem._songId ?? attributes?.playParams?.id ?? 'no-id-found'
|
||||
attributes.url = {
|
||||
cider: "https://cider.sh/p?id=" + attributes.playParams.id,
|
||||
appleMusic: "https://music.apple.com/song/" + nowPlayingItem.songId
|
||||
appleMusic: "https://music.apple.com/song/" + (nowPlayingItem._songId ?? attributes?.playParams?.id ?? 'no-id-found')
|
||||
}
|
||||
if (attributes.playParams.id === 'no-id-found') {
|
||||
attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue