No more website routing
This commit is contained in:
parent
eb82fcc85d
commit
d1370194da
1 changed files with 2 additions and 3 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue