# exporting only mp3-albums

**URL:** https://community.mp3tag.de/t/exporting-only-mp3-albums/8809
**Category:** Export
**Created:** [August 19, 2009, 3:23pm UTC](https://community.mp3tag.de/t/exporting-only-mp3-albums/8809 "2009-08-19T15:23:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![azrael](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@azrael](https://community.mp3tag.de/u/azrael)
#### Post date: [August 19, 2009, 3:23pm UTC](https://community.mp3tag.de/t/exporting-only-mp3-albums/8809/1 "2009-08-19T15:23:12Z")

</div>

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...

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [August 22, 2009, 1:37pm UTC](https://community.mp3tag.de/t/exporting-only-mp3-albums/8809/2 "2009-08-22T13:37:29Z")

</div>

Try

```
$filename(mp3.txt)$loop(%artist%-%album%,1)$if($eql($strstr(%_extension%,mp3),0),,
%artist%-%album%
)$loopend()
```

---

<div class="post-metadata">

### Author: ![azrael](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@azrael](https://community.mp3tag.de/u/azrael)
#### Post date: [August 24, 2009, 7:19am UTC](https://community.mp3tag.de/t/exporting-only-mp3-albums/8809/3 "2009-08-24T07:19:32Z")

</div>

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.
