Fix song_shorthand when songs have more than one '-' in their name
This commit is contained in:
parent
0fb45e6fa8
commit
6a284975fc
2
neofetch
2
neofetch
|
@ -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}"
|
||||||
|
|
Reference in New Issue