Fix DiscordRPC for mobile
This commit is contained in:
parent
499659469e
commit
b6e546ecb5
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ const MusicKitInterop = {
|
||||||
attributes.playParams.id = attributes?.playParams?.id ?? 'no-id-found';
|
attributes.playParams.id = attributes?.playParams?.id ?? 'no-id-found';
|
||||||
attributes.url = {
|
attributes.url = {
|
||||||
cider: "cider://play/s/" + nowPlayingItem?._songId ?? 'no-id-found',
|
cider: "cider://play/s/" + nowPlayingItem?._songId ?? 'no-id-found',
|
||||||
appleMusic: "https://music.apple.com/song/" + nowPlayingItem?._songId ?? 'no-id-found'
|
appleMusic: "https://music.apple.com/"+ mk.storefrontId +"/song/" + nowPlayingItem?._songId ?? 'no-id-found'
|
||||||
}
|
}
|
||||||
if (attributes.playParams.id === 'no-id-found') {
|
if (attributes.playParams.id === 'no-id-found') {
|
||||||
attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found';
|
attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue