1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-10 17:13:39 +01:00

Another attempt to avoid duplicate notifications

This commit is contained in:
David Sansome 2010-02-27 16:57:43 +00:00
parent cd8243b58f
commit b47d53d569

View File

@ -468,6 +468,11 @@ void Playlist::SetStreamMetadata(const QUrl& url, const Song& song) {
if (item->Url() != url) if (item->Url() != url)
return; return;
// Don't update the metadata if it's only a minor change from before
if (item->Metadata().artist() == song.artist() &&
item->Metadata().title() == song.title())
return;
item->SetTemporaryMetadata(song); item->SetTemporaryMetadata(song);
UpdateScrobblePoint(); UpdateScrobblePoint();