From 3906a98a3fd288797b3c2f0ecc1666a4b2993048 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 9 Sep 2016 22:29:41 -0400 Subject: [PATCH] Fixes for sing.sh --- bot.cfg | 2 +- modules/sing/sing.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.cfg b/bot.cfg index 3256efe..328b0d5 100644 --- a/bot.cfg +++ b/bot.cfg @@ -1,6 +1,6 @@ #enter channels here in quotes before the ) channel=( - "a11y" + "talkingarch" ) # The date format for log entries. man date for details. dateFormat='%B %d, %I:%m%P' diff --git a/modules/sing/sing.sh b/modules/sing/sing.sh index 68ff5df..7eec480 100755 --- a/modules/sing/sing.sh +++ b/modules/sing/sing.sh @@ -7,7 +7,7 @@ shift #get the lyric text into a variable trackName="${@//:/ - }" # Try to work around some common tags that will fail to find lyrics. -trackName="${trackName/ - live/}" +trackName="${trackName//\//_}" curl="$(command -v curl)" trackName="$(echo "$trackName" | sed -e "s/ /_/g" -e 's/([[:print:]]*)//g' -e "s/['\/\.]//g" -e 's/&/and/g' -e 's/รถ/o/g')" artist="$(echo "${trackName,,}" | cut -d "-" -f 1 | sed -e 's/_$//' -e 's/^the_\(.*\)/\1_the/')"