We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1398b8 commit 19f10c0Copy full SHA for 19f10c0
src/mediaplayer
@@ -504,14 +504,15 @@ def update_progressbar(manager, player):
504
if t == lyrics_ix:
505
curr_line = len(s) - 1
506
# -- Tooltip
507
+ # Check if album is empty before centering
508
+ has_album = s[2].strip() != ""
509
center_text(s, text_len)
510
if curr_line:
511
s[curr_line] = "<b>" + s[curr_line] + "</b>"
512
tooltip = f"<span variant='title-caps' font_weight='bold'>{s[0]}</span>"
513
tooltip += f"\n{s[1]}"
514
# Skip album in tooltip if we don't have it
- s[2] = s[2].strip()
- if s[2]:
515
+ if has_album:
516
tooltip += f"\n<i>{s[2]}</i>"
517
if len(s) >= 4 and s[3].strip():
518
tooltip += "\n"
0 commit comments