# export a list of albums

**URL:** <https://community.mp3tag.de/t/export-a-list-of-albums/19397>\
**Category:** Export\
**Created:** [October 1, 2017, 3:02pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397 "2017-10-01T15:02:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![parafux](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e36b37/32.png) [@parafux](https://community.mp3tag.de/u/parafux)\
**Post date:** [October 1, 2017, 3:02pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/1 "2017-10-01T15:02:47Z")

</div>

Hi there,

does anybody know a way to export a list of albums, e.g. as follows.

artist a - album a  
artist a - album b  
artist b - album a  
artist b - album b

thx

p.

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 1, 2017, 3:37pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/2 "2017-10-01T15:37:01Z")

</div>

> [@parafux](#):
>
> Hi there,
> 
> does anybody know a way to export a list of albums, e.g. as follows.  
> p.

like

```
$loop(%artist%,1)%artist%
$loop(%album%,1)%album%
$loopend()
$loopend()

```

?

---

<div class="post-metadata">

**Author:** ![veggera](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/db5fbb/32.png) [@veggera](https://community.mp3tag.de/u/veggera)\
**Post date:** [March 8, 2018, 1:47pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/3 "2018-03-08T13:47:37Z")

</div>

Is it possible to separate artists by a comma? ","

Like:

artist1, artist2, artist3

$loop(%artist%,1)%artist%

Export multiple album artists without commas

Like:

artist1 artist2 artist3

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [March 8, 2018, 1:58pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/4 "2018-03-08T13:58:08Z")

</div>

> [@veggera](#):
>
> $loop(%artist%,1)%artist%

is missing the $loopend().  
so,  
`$loop(%artist%,1)%artist% $loopend()`  
should produce a list of names with no comma in between. WIll be hard to read, though.

---

<div class="post-metadata">

**Author:** ![veggera](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/db5fbb/32.png) [@veggera](https://community.mp3tag.de/u/veggera)\
**Post date:** [March 8, 2018, 2:14pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/5 "2018-03-08T14:14:02Z")

</div>

Here is my export file

```
$filename(txt,utf-8)
%album%
 $loop(%artist%,1) %artist% $loopend()
REMIXERS:</span> $loop(%mixartist%,1) %mixartist% $loopend()

```

%publisher% - %genre%

But on Various Artist albums, all artist generated without separated by commas

Arude Binaryh Blancah Clawz SG Jobe Kris Davis Mashk Nick Devon Soul Button Soul Button, Nick Devon

I want to see it like:

Arude, Binaryh, Blancah, Clawz SG, Jobe, Kris Davis, Mashk, Nick Devon, Soul Button

Is that possible?

Thank you,  
Gregory

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [March 8, 2018, 3:02pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/6 "2018-03-08T15:02:08Z")

</div>

isn't this the same problem as here:

> [@Export configuration for multiple artists](https://community.mp3tag.de/t/export-configuration-for-multiple-artists/40992/4):
>
> Yes, because in there is no comma. it should be $loop(%artist%,1) %artist%, $loopend() I am not sure what the is doing in that code as it concludes a \<span\> which I do not see.

---

<div class="post-metadata">

**Author:** ![parafux](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e36b37/32.png) [@parafux](https://community.mp3tag.de/u/parafux)\
**Post date:** [December 9, 2018, 6:11am UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/7 "2018-12-09T06:11:11Z")

</div>

@ohrenkino  
this script  
$loop(%artist%,1)%artist%  
$loop(%album%,1)%album%  
$loopend()  
$loopend()  
gives me unfortunately the following:

artist a  
album a  
album b

artist b  
album a  
album b

but i want to have the following:  
artist a - album a  
artist a - album b  
artist b - album a  
artist b - album b

OK i found it:  
$loop(%artist%,1)%artist%$loop(%album%,1)%artist% - %album%  
$loopend()$loopend()

---

<div class="post-metadata">

**Author:** ![parafux](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e36b37/32.png) [@parafux](https://community.mp3tag.de/u/parafux)\
**Post date:** [December 9, 2018, 1:13pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/8 "2018-12-09T13:13:22Z")

</div>

now i have a solution, but also for each title of a compilation i get a result. how can i create a list of artist - album without the compilations?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 9, 2018, 1:44pm UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/9 "2018-12-09T13:44:38Z")

</div>

I do not know which other data you have - so it could be that you can filter for files that do not have set COMPILATION = 1.  
Or you have "Various Artists" as ALBUMARTIST - so filter for this criterion.  
Or use ALBUMARTIST instead of ARTIST in your export ...  
Or do not include the folder with compilations in the list of files before you start the export.  
Things like that.

---

<div class="post-metadata">

**Author:** ![parafux](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e36b37/32.png) [@parafux](https://community.mp3tag.de/u/parafux)\
**Post date:** [July 28, 2020, 6:25am UTC](https://community.mp3tag.de/t/export-a-list-of-albums/19397/10 "2020-07-28T06:25:21Z")

</div>

that code is even better, because the last code listed the artist first additionally

$loop(%artist%,1)$loop(%album%,1)%artist% - %album%  
$loopend()$loopend()
