Commit 6a284975 authored by Dylan's avatar Dylan

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

parent 0fb45e6f
......@@ -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}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment