Added multi artists support
This commit is contained in:
@@ -330,11 +330,11 @@ PlayQueue::addSome()
|
||||
|
||||
entry->bindString("name", Wt::WString::fromUTF8(track->getName()), Wt::TextFormat::Plain);
|
||||
|
||||
auto artist = track->getArtist();
|
||||
if (artist)
|
||||
auto artists {track->getArtists()};
|
||||
if (!artists.empty())
|
||||
{
|
||||
entry->setCondition("if-has-artist", true);
|
||||
entry->bindWidget("artist-name", LmsApplication::createArtistAnchor(track->getArtist()));
|
||||
entry->bindWidget("artist-name", LmsApplication::createArtistAnchor(artists.front()));
|
||||
}
|
||||
auto release = track->getRelease();
|
||||
if (release)
|
||||
|
||||
Reference in New Issue
Block a user