Fix DiscordRPC for mobile

This commit is contained in:
yazninja 2022-01-29 20:41:46 +08:00 committed by GitHub
parent 499659469e
commit b6e546ecb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ const MusicKitInterop = {
attributes.playParams.id = attributes?.playParams?.id ?? 'no-id-found';
attributes.url = {
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') {
attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found';