No more website routing

This commit is contained in:
Core 2022-01-28 17:25:47 +00:00
parent eb82fcc85d
commit d1370194da
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -50,10 +50,9 @@ 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.url = {
cider: "https://cider.sh/p?id=" + attributes.playParams.id,
appleMusic: "https://music.apple.com/song/" + nowPlayingItem.songId
cider: "cider://play/s/" + nowPlayingItem?.songId ?? 'no-id-found',
appleMusic: "https://music.apple.com/song/" + nowPlayingItem?.songId ?? 'no-id-found'
}
if (attributes.playParams.id === 'no-id-found') {
attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found';