From 53648c1098180998ae749d8bc85d8a4ffa982ac1 Mon Sep 17 00:00:00 2001 From: haskal Date: Fri, 4 Jun 2021 04:25:30 -0400 Subject: [PATCH] html encoding (because lol) --- np.10s.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/np.10s.sh b/np.10s.sh index 3ca8f17..e1754a7 100755 --- a/np.10s.sh +++ b/np.10s.sh @@ -18,6 +18,11 @@ for player in $(qdbus $MPRIS_ROOT); do artist2=${artist2#"$XESAM_ARTIST2"} 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) + if [ "$title" != "" ]; then if [ "$artist" == "" ]; then if [ "$artist2" == "" ]; then