Fix bug setting wrong temp metadata and bug in pipeline

This commit is contained in:
Jonas Kvinge
2018-09-21 00:34:02 +02:00
parent a77dde7d3b
commit 0143617056
5 changed files with 11 additions and 8 deletions

View File

@@ -1456,15 +1456,14 @@ void Playlist::StopAfter(int row) {
void Playlist::SetStreamMetadata(const QUrl &url, const Song &song) {
//qLog(Debug) << "Setting metadata for" << url << "to" << song.artist() << song.title();
if (!current_item()) return;
if (current_item()->Url() != url) return;
// Don't update the metadata if it's only a minor change from before
if (current_item()->Metadata().artist() == song.artist() && current_item()->Metadata().title() == song.title()) return;
//qLog(Debug) << "Setting metadata for" << url << "to" << song.artist() << song.title();
current_item()->SetTemporaryMetadata(song);
InformOfCurrentSongChange();