From d00967dd8bca3881a64cb0bf156bf4de276ac3ee Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 17 Nov 2024 21:35:25 +0100 Subject: add artist info --- nowplaying/playing.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nowplaying/playing.js b/nowplaying/playing.js index 3f334eb..cef25fb 100755 --- a/nowplaying/playing.js +++ b/nowplaying/playing.js @@ -40,6 +40,12 @@ const setupws = () => { if( parsed.options.state != 'playing' ) ret = '(⏸) '; + const artist = parsed.options.playing_track.artist; + if( artist && artist.length > 0 ) { + ret += artist; + ret += ' - '; + } + const homedir = require( "os" ).homedir(); if( title.startsWith( homedir ) ) { const path = title.substring( homedir.length + 1 ); -- cgit v1.2.3