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

View File

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