Fixed indentations

This commit is contained in:
Core 2022-01-28 16:32:57 +00:00
parent 09db8af283
commit 9945f88beb
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -44,7 +44,6 @@ const MusicKitInterop = {
const remainingTimeExport = mk.currentPlaybackTimeRemaining;
const attributes = (nowPlayingItem != null ? nowPlayingItem.attributes : {});
attributes.storefrontId = storefrontId;
attributes.status = isPlayingExport ?? false;
attributes.name = attributes?.name ?? 'No Title Found';
attributes.artwork = attributes?.artwork ?? {url: ''};
@ -52,8 +51,13 @@ const MusicKitInterop = {
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'
attribtues.url = { cider: "https://cider.sh/p?id=" + attributes.playParams.id, appleMusic: "https://music.apple.com/song/" + nowPlayingItem.songId }
if (attributes.playParams.id === 'no-id-found') { attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found'; }
attributes.url = {
cider: "https://cider.sh/p?id=" + attributes.playParams.id,
appleMusic: "https://music.apple.com/song/" + nowPlayingItem.songId
}
if (attributes.playParams.id === 'no-id-found') {
attributes.playParams.id = nowPlayingItem?.id ?? 'no-id-found';
}
attributes.albumName = attributes?.albumName ?? '';
attributes.artistName = attributes?.artistName ?? '';
attributes.genreNames = attributes?.genreNames ?? [];