From 0d424aa81ed94525cfbd06cb7e6f11b892f3a7d1 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 30 Jul 2019 21:30:52 +0200 Subject: [PATCH] Dont fetch lyrics again if only url is changed through url handler --- src/context/contextview.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/context/contextview.cpp b/src/context/contextview.cpp index f84c1b935..bfda19f0e 100644 --- a/src/context/contextview.cpp +++ b/src/context/contextview.cpp @@ -189,7 +189,18 @@ void ContextView::UpdateNoSong() { void ContextView::SongChanged(const Song &song) { - if (song_playing_.is_valid() && song.id() == song_playing_.id() && song.url() == song_playing_.url()) { + if (song_playing_.is_valid() && song.id() == song_playing_.id() && song.source() == song_playing_.source() && + ( + song.url() == song_playing_.url() + || + ( + song.albumartist() == song_playing_.albumartist() && + song.artist() == song_playing_.artist() && + song.album() == song_playing_.album() && + song.title() == song_playing_.title() + ) + ) + ) { UpdateSong(song); } else {