Fixed some errors in the sing module.

This commit is contained in:
Storm Dragon
2016-09-04 23:03:35 -04:00
parent 3e9f936c64
commit af4739ddd8
2 changed files with 36 additions and 1 deletions

View File

@ -32,7 +32,7 @@ lyricText="$(echo "$lyricText" | tr "[:space:]" " " | tr -s "[:space:]")"
#sometimes lyrics are just one long line with everything. If this happens, cut it down so it's not too long for the 512 character channel limit.
if [ ${#lyricText} -gt 412 ] ; then
lyricText="${lyricText:0:409}... "
lyricText="$(echo "$lyricText" | rev | cut -d " " -f 1- | rev)"
lyricText="$(echo "$lyricText" | rev | cut -d " " -f 1- | rev | sed -e 's/try { _.*//g')"
fi
#Display the lyric text
if [ ${#lyricText} -gt 15 ] ; then