From f8ff7e8710bdf169ced6073ae8e0bf48cb2c028e Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Thu, 6 Jun 2019 17:20:33 +1000 Subject: [PATCH] also replace ampersands in artist --- i3blocks-music.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3blocks-music.pl b/i3blocks-music.pl index 2cebc38..4f71e2b 100755 --- a/i3blocks-music.pl +++ b/i3blocks-music.pl @@ -29,11 +29,11 @@ push(@metadata, $artist) if $artist; my $title = qx(playerctl $player_arg metadata title); $title =~ s/(\s|\s\()[Ff]([et]at[. ].*|t.*)//; $title =~ s/((\s(\(|\[).+(\)|\]).+)|(\s-\s.+))+//; -$title =~ s/&/&/; # fix ampersand rendering for i3bar push(@metadata, $title) if $title; for (@metadata){ s/\n//; # remove newlines + s/&/&/; # fix ampersand rendering for i3bar } # Print stuff -- 2.47.1