Song: Fix album name being used as artist name

This commit is contained in:
Dylan Araps 2017-01-26 16:37:52 +11:00
parent 0bca00a116
commit 8884b19e82

View file

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