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:
parent
cd8243b58f
commit
b47d53d569
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user