Fix song_shorthand when songs have more than one '-' in their name

This commit is contained in:
Dylan 2016-03-13 09:43:06 +11:00
parent 0fb45e6fa8
commit 6a284975fc

View file

@ -1220,7 +1220,7 @@ getsong () {
# Display Artist and Title on seperate lines.
if [ "$song_shorthand" == "on" ]; then
artist="${song/ -*}"
song=${song/*- }
song=${song/$artist - }
if [ "$song" != "$artist" ]; then
prin "Artist: ${artist}"