mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor(custon): hide on empty text
This commit is contained in:
@ -39,7 +39,7 @@ def on_metadata(player, metadata, manager):
|
||||
track_info = '{artist} - {title}'.format(artist=player.get_artist(),
|
||||
title=player.get_title())
|
||||
|
||||
if player.props.status != 'Playing':
|
||||
if player.props.status != 'Playing' and track_info:
|
||||
track_info = ' ' + track_info
|
||||
write_output(track_info, player)
|
||||
|
||||
|
Reference in New Issue
Block a user