When adding an artist to the playlist, add only the tracks he actually made (and not whole compilations for example)

This commit is contained in:
emeric
2018-02-22 13:59:43 +01:00
parent 86077c1e44
commit 373d7ff12b
+5 -1
View File
@@ -138,7 +138,11 @@ static std::vector<Database::Track::pointer> getArtistTracks(Wt::Dbo::Session& s
for (auto release : releases)
{
auto tracks = release->getTracks(clusters);
res.insert( res.end(), tracks.begin(), tracks.end() );
for (auto track : tracks)
{
if (track->getArtist() && track->getArtist().id() == artistId)
res.push_back(track);
}
}
return res;