Song: Don't print empty song with song_shorthand

This commit is contained in:
Michael Straube 2017-01-26 09:05:24 +01:00
parent e66b63d0f3
commit c7892a70c7

View file

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