diff options
| author | navewindre <boneyaard@gmail.com> | 2024-11-17 21:35:25 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2024-11-17 21:35:25 +0100 |
| commit | d00967dd8bca3881a64cb0bf156bf4de276ac3ee (patch) | |
| tree | 9311a5116570e33250cfc2574a0c60c80d2adcf0 /nowplaying/playing.js | |
| parent | b9d696b77933e8e4a042e3414b000512bee135c1 (diff) | |
add artist info
Diffstat (limited to 'nowplaying/playing.js')
| -rwxr-xr-x | nowplaying/playing.js | 6 |
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 ); |
