From 05a3e07b21c52670a8904b81f104d0b00e92f6ec Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Fri, 28 Jan 2022 03:04:12 +0000 Subject: [PATCH] Song URL added to attributes --- src/preload/cider-preload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/preload/cider-preload.js b/src/preload/cider-preload.js index 7d921eeb..19a96f5c 100644 --- a/src/preload/cider-preload.js +++ b/src/preload/cider-preload.js @@ -48,6 +48,7 @@ const MusicKitInterop = { attributes.name = attributes?.name ?? 'No Title Found'; attributes.artwork = attributes?.artwork ?? { url: '' }; attributes.artwork.url = (attributes?.artwork?.url ?? '').replace(`{f}`,"png"); + attributes.songUrl = ('https://music.apple.com/song/' + nowPlayingItem?._songId) ?? ''; attributes.playParams = attributes?.playParams ?? { id: 'no-id-found' }; attributes.playParams.id = attributes?.playParams?.id ?? 'no-id-found'; if (attributes.playParams.id === 'no-id-found') { attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found'; }