Too long list

Folder structure:

Artist or in some cases name of the collection album series (like hard dance mania)

I just would like to take that artist -foldername and list those once. Now I have loop like


But it makes as many entries as there are mp3:s on that folder, so how I can get just one entry per artist folder...

You can write something like this:

... or this:


Thank you, that worked just like I wanted.