Module and trigger updates and fixes.

This commit is contained in:
Storm Dragon
2016-09-08 12:16:59 -04:00
parent 37ee1352fd
commit 6580610e29
4 changed files with 8 additions and 5 deletions

View File

@ -6,6 +6,7 @@ phrases=(
"damn!"
"fuck the fucking fuckers!"
"fuck!"
"fuck. fuck. fuck. Mother mother fuck. Mother mother fuck fuck. Mother fuck mother fuck. Noise noise noise."
"god damn it!"
"motherfucker"
"shit, piss, fuck, cunt, cocksucker, motherfucker, and tits."

View File

@ -6,6 +6,8 @@ chan="$1"
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/}"
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/')"