summaryrefslogtreecommitdiff
path: root/nowplaying
diff options
context:
space:
mode:
Diffstat (limited to 'nowplaying')
-rwxr-xr-xnowplaying/playing.js6
1 files changed, 6 insertions, 0 deletions
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 );