Added initial implementation of inline remixers

First implementation is a bit of a hardcode; working on making it work with all artist relations. Will then add a config flag or something for it to be user-toggleable.
This commit is contained in:
Daniel Thirion
2025-03-04 10:46:43 +01:00
parent da7a2f089b
commit 6608063d61
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -437,6 +437,13 @@ namespace lms::ui
entry->bindWidget("artists-md", utils::createArtistDisplayNameWithAnchors(track->getArtistDisplayName(), artists));
}
const auto remixers{ track->getArtistIds({ TrackArtistLinkType::Remixer }) };
if (!remixers.empty())
{
entry->setCondition("if-has-remixers", true);
entry->bindWidget("remixers", utils::createArtistDisplayNameWithAnchors(track->getArtistDisplayName(), remixers));
}
auto trackNumber{ track->getTrackNumber() };
if (trackNumber)
{