Commit d623aa60 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Do not garbage current track

parent 8d63a6eb
Pipeline #213833 passed with stage
in 3 minutes and 11 seconds
......@@ -262,5 +262,5 @@ class LyricsHelper:
callback(lyrics, *args)
return
except Exception as e:
Logger.warning("LyricsView::__on_lyrics_downloaded(): %s", e)
Logger.warning("LyricsHelper::__on_lyrics_downloaded(): %s", e)
self.__get_lyrics_from_web(track, methods, callback, *args)
......@@ -301,6 +301,7 @@ class LyricsView(View, SignalsHelper):
self.__lyrics_label.set_text(_("No lyrics found ") + "😓")
else:
name = track.name.lower()
track = Track(track.id)
for _filter in self.__FILTERS:
name = name.replace(_filter, "")
track.set_name(name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment