mvoed songlink to url attribute

Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
Core 2022-09-15 18:40:52 +01:00
parent 84878ba0e4
commit f5ea832d91
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -145,6 +145,7 @@ const MusicKitInterop = {
attributes.url = {
cider: `https://cider.sh/link?play/s/${nowPlayingItem?._songId ?? nowPlayingItem?.songId ?? "no-id-found"}`,
appleMusic: attributes.websiteUrl ? attributes.websiteUrl : `https://music.apple.com/${mk.storefrontId}/song/${nowPlayingItem?._songId ?? nowPlayingItem?.songId ?? "no-id-found"}`,
songLink: "https://song.link/i/" + attributes.songId
};
if (attributes.playParams.id === "no-id-found") {
attributes.playParams.id = nowPlayingItem?.id ?? "no-id-found";