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
1 changed files with 1 additions and 1 deletions

View File

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