exporting only mp3-albums

good evening,
i'm trying to edit an export template which shows me only my albums containing mp3-files.
what i did so far is:

$filename(mp3.txt)$loop(%artist%-%album%-%title%)$if($eql($strstr(%extension%,mp3),0),,
%artist%-%album%
)$loopend()

unfortunately this shows me as many artist-album lines for an album as there are mp3-files in this album, which is somewhat logic.

is it possible to show only one entry per album?

Thanks for your help...

Try

$filename(mp3.txt)$loop(%artist%-%album%,1)$if($eql($strstr(%_extension%,mp3),0),,
%artist%-%album%
)$loopend()
QUOTE (dano @ Aug 22 2009, 17:37) <{POST_SNAPBACK}>
Try
$filename(mp3.txt)$loop(%artist%-%album%,1)$if($eql($strstr(%_extension%,mp3),0),,
%artist%-%album%
)$loopend()<!--QuoteEnd--></div><!--QuoteEEnd-->

Dano, thank you very much for your help, now this will save me a lot of work cleaning out my music-collection.