From dce27613deabed65fdfddea7b7758abc7232d763 Mon Sep 17 00:00:00 2001 From: haskal Date: Thu, 10 Jun 2021 02:43:08 -0400 Subject: [PATCH] fix pipe chars --- np.10s.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/np.10s.sh b/np.10s.sh index e1754a7..dd400c2 100755 --- a/np.10s.sh +++ b/np.10s.sh @@ -19,19 +19,19 @@ for player in $(qdbus $MPRIS_ROOT); do title=$(echo "$metadata" | grep "$XESAM_TITLE") title=${title#"$XESAM_TITLE"} - title=$(echo "$title" | recode ascii..html) - artist=$(echo "$artist" | recode ascii..html) - artist2=$(echo "$artist2" | recode ascii..html) + title=$(echo "$title" | sed -e 's/&/&/g' -e 's//>/g' -e 's/|/\|/g') + artist=$(echo "$artist" | sed -e 's/&/&/g' -e 's//>/g' -e 's/|/\|/g') + artist2=$(echo "$artist2" | sed -e 's/&/&/g' -e 's//>/g' -e 's/|/\|/g') if [ "$title" != "" ]; then if [ "$artist" == "" ]; then if [ "$artist2" == "" ]; then - echo "$title | iconName=multimedia-audio-player-symbolic" + echo "$title | iconName=multimedia-audio-player-symbolic" else - echo "$artist2 - $title | iconName=multimedia-audio-player-symbolic" + echo "$artist2 - $title | iconName=multimedia-audio-player-symbolic" fi else - echo "$artist - $title | iconName=multimedia-audio-player-symbolic" + echo "$artist - $title | iconName=multimedia-audio-player-symbolic" fi echo "---" exit