From 0b76426ca6064b1e16c0bbada2092c11beeaf5a8 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sat, 29 Jan 2022 00:04:56 +0700 Subject: [PATCH] fix --- src/preload/cider-preload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preload/cider-preload.js b/src/preload/cider-preload.js index 3e13e908..f58f6ab8 100644 --- a/src/preload/cider-preload.js +++ b/src/preload/cider-preload.js @@ -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';