Skip to content

Commit

Permalink
fix make song name panic (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoozhang committed Aug 8, 2021
1 parent cd2874e commit 60deb52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion NEMbox/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ def build_playinfo(
1, self.indented_startcol, "♫ ♪ ♫ ♪ " + quality, curses.color_pair(3)
)

song_info = song_name + self.space + artist + " < " + album_name + " >"
song_info = "{}{}{} < {} >".format(
song_name,
self.space,
artist,
album_name,
)
if truelen(song_info) <= self.endcol - self.indented_startcol - 19:
self.addstr(
1,
Expand Down

0 comments on commit 60deb52

Please sign in to comment.