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