Song URL added to attributes
This commit is contained in:
parent
0920858aa5
commit
05a3e07b21
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ 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'; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue