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
1 changed files with 5 additions and 0 deletions

View File

@ -468,6 +468,11 @@ void Playlist::SetStreamMetadata(const QUrl& url, const Song& song) {
if (item->Url() != url)
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);
UpdateScrobblePoint();