Fix discordRPC

This commit is contained in:
yazninja 2022-01-28 11:30:09 +08:00
parent 958e1c9977
commit 48bc7cd2d4
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,6 @@ const MusicKitInterop = {
attributes.name = attributes?.name ?? 'No Title Found';
attributes.artwork = attributes?.artwork ?? { url: '' };
attributes.artwork.url = (attributes?.artwork?.url ?? '').replace(`{f}`,"png");
attributes.songUrl = ('https://music.apple.com/song/' + nowPlayingItem?._songId) ?? '';
attributes.playParams = attributes?.playParams ?? { id: 'no-id-found' };
attributes.playParams.id = attributes?.playParams?.id ?? 'no-id-found';
if (attributes.playParams.id === 'no-id-found') { attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found'; }