fixed lyrics fetching when no song is playing

This commit is contained in:
Martin Wagner 2020-02-02 23:13:21 +01:00
parent 0c9635921d
commit 08ff73d797

View File

@ -1626,7 +1626,8 @@ class LyricsWindow(Gtk.Window): #Lyrics view with own client because MPDClient i
while not self.stop:
if self.client.connected():
cs=self.client.currentsong()
cs.pop("pos") #avoid unnecessary reloads caused by position change of current title
if not cs == {}:
cs.pop("pos") #avoid unnecessary reloads caused by position change of current title
if cs != self.current_song:
GLib.idle_add(update_label, _("searching..."))
try: