On 26 jun, 00:23, Aren Olson <
reacoc...@gmail.com> wrote:
> It's not nearly as slow as you'd think to scan through them all - the
> collection panel does it all the time. If all you want is a list of all
> artist strings, I'd suggest something like this (untested):
>
> artists = set()
> for track in exaile.collection.get_tracks():
> artists.update(track.get_tag_raw("artist") or [])
>
> That should get you a set object containing all the unique artist tag
> strings in the db, running in roughly O(number of tracks). This is
> unsorted obviously, but you can easily turn it into a list and sort it
> afterwards if necessary.
>
> HTH
>
> -Aren
>