+ {/* Track cover */}
+ {Spicetify.Player.data.item.images ?
+ Spicetify.Player.data.item.images.length > 0 ?
+
+ : <>>
+ : <>>}
+
+ {/* Track title */}
+
+ {Spicetify.Player.data.item.name}
+
+
+ {/* Track artist(s) */}
+ {(function () {
+
+ // Get all the artists
+ const trackArtists = Spicetify.Player.data.item.artists;
+ let trackAritistsInnnerHTML = "";
+
+ // Check if there are any artists
+ if (trackArtists) {
+ // Display all the artists
+ for (const artist of trackArtists) {
+ trackAritistsInnnerHTML += (artist.name + ", ")
+ }
+ if(trackAritistsInnnerHTML.length > 0) {
+ trackAritistsInnnerHTML = trackAritistsInnnerHTML.substring(0, trackAritistsInnnerHTML.length - 2);
+ }
+
+ return
+ {trackAritistsInnnerHTML}
+
+ } else {
+ return <>>;
+ }
+ })()}
+
+ {/* Track album */}
+
+ {Spicetify.Player.data.item.album.name}
+
+