Philip Meyer;290084 Wrote: > If you have both albums with and without band tags, how would they be > listed and sorted by band? Only display items that have a band tag, or > use the artist name if there isn't a band? Or list all of the NULL bands > first?
It's not unlike the current situation with ALBUMARTIST. The way it's done now is through the internal notion of a 'primary artist'. If you look in the albums table you'll see a 'contributor' column. It contains an id of one artist in the contributors table. This is the artist used for sorting by 'Artist'. I'm not sure exactly when this artist is arrived at - probably in one of the post-scan passes. But it basically gives priority to the ALBUMARTIST, then to ARTIST(s). With this approach it's easy to see that changing the primary artist because you want to favor the BAND will either require a full rescan of the library or else the running of a lot of queries whenever the option is changed. The artist displayed, on the other hand, is arrived at a lot more laboriously thorugh a series of queries. When there's no ALBUMARTIST (or VA) then artists from every track in the album are queried. This is why the browse album pages in the web ui (when showing artist names) are so slow - displaying a page of 50 albums often entails running 700-900 or more SQL queries. -- JJZolx Jim ------------------------------------------------------------------------ JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=46093 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
