mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-10 09:03:13 +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)
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user