Commit f5170ed6 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

avoid fetching lyrics twice for tracks not in database from playlist

when playing the track metadata dialog from the playlist a track
added from a file outside the collection will be scanned twice with the
second one adding a duplicate lyrics data

fetch lyrics only for tracks having a databaseId (in the collection) and
not for the other ones
parent 18c5bfa7
Pipeline #71619 passed with stage
in 18 seconds
......@@ -299,7 +299,9 @@ void TrackMetadataModel::fillDataFromTrackData(const TrackMetadataModel::TrackDa
if (trackData.hasDatabaseId()) {
mDatabaseId = trackData[DataTypes::DatabaseIdRole].toULongLong();
Q_EMIT databaseIdChanged();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment