CSV export file empty

Hi everyone,

I’m tyring to export my metadata in CSV format to work with it in Excel. I’ve been fiddling around with the export file, but no matter what I do, all I get is a CSV file without any metadata at all, just the titles of the fields. I am using this:

$filename(csv,utf-16)Album;Albumartist;Year;Publisher;
$loop(%album%;%albumartist%;%year%;%publisher%;)
$loopend()

What did I do wrong?

... you are missing a closing bracket for the $loop() statement.
Also, You should define in $loop() by which criteria you want to sort the data.
Finally, between $loop() and $loopend() you declare the output.
So, I could imagine, that this is better

$filename(csv,utf-16)Album;Albumartist;Year;Publisher;
$loop(%album%)%album%;%albumartist%;%year%;%publisher%
$loopend()

This does indeed work! However, it now repeats the album title depending on the number of tracks that album has. So a 21-track album becomes 21 times the album title.

Try

$filename(csv,utf-16)Album;Albumartist;Year;Publisher;
$loop(%album%,1)%album%;%albumartist%;%year%;%publisher%
$loopend()

Just an ammendment:
If you have several albums with names like "Best of" or "Gold" or "Greatest hits" then all with the same name would appear as a single album.
To avoid this you may want to modify $loop(%album%,1) to $loop(%album%%albumartist%,1) to create more album names.