Dont fetch lyrics again if only url is changed through url handler

This commit is contained in:
Jonas Kvinge 2019-07-30 21:30:52 +02:00
parent 80acbfa56a
commit 0d424aa81e
1 changed files with 12 additions and 1 deletions

View File

@ -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 {