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:
+5
-1
@@ -138,7 +138,11 @@ static std::vector<Database::Track::pointer> getArtistTracks(Wt::Dbo::Session& s
|
|||||||
for (auto release : releases)
|
for (auto release : releases)
|
||||||
{
|
{
|
||||||
auto tracks = release->getTracks(clusters);
|
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;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user