finalise i3blocks-music, fix spelling in duckduckget
[scripts.git] / i3blocks-music.pl
index 9bee37a5e2ae3deb956e30041f705dd8cc16f900..6a8cc72faef33b47c0aafcca39358a744667528e 100755 (executable)
@@ -27,7 +27,7 @@ my $artist = qx(playerctl $player_arg metadata artist);
 push(@metadata, $artist) if $artist;
 
 my $title = qx(playerctl $player_arg metadata title);
-$title =~ s/(?:[ ][( ][Ff]eat[. ].*)|(?:[( ][Ff]t[. ].*)//;
+$title =~ s/(\s|\s\()[Ff]([et]at[. ].*|t.*)//;
 push(@metadata, $title) if $title;
 
 # Print stuff