# dano export configs

**URL:** <https://community.mp3tag.de/t/dano-export-configs/3978>\
**Category:** Export\
**Created:** [October 30, 2006, 10:30am UTC](https://community.mp3tag.de/t/dano-export-configs/3978 "2006-10-30T10:30:52Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![peregrino](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/c37758/32.png) [@peregrino](https://community.mp3tag.de/u/peregrino)\
**Post date:** [July 20, 2007, 12:04pm UTC](https://community.mp3tag.de/t/dano-export-configs/3978/21 "2007-07-20T12:04:40Z")

</div>

Wow, nice solution Dano!  
Is there any way you can know the ammount of subfolders untill the artist folder? Maybe a solution would be to have the regexp match the artist name in the middle of %\_folderpath% and stop? I'm not an expert on RegExp, but I think that can be done 🙂

😉 Peregrino

---

<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:** [July 20, 2007, 12:48pm UTC](https://community.mp3tag.de/t/dano-export-configs/3978/22 "2007-07-20T12:48:58Z")

</div>

The sorting should work without tags so I can't look for artist.

Another solution is (only works with v2.38c)

$loop($regexp(%\_folderpath\_rel%,\\.+$,))

That works if the user loaded the parent folder of the artist folders.  
e.g.  
c:\stuff\my music\Bowie\Outside\Outside{files}  
He must load "my music" but not "stuff" or c:

---

<div class="post-metadata">

**Author:** ![Joke](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/3da27b/32.png) [@Joke](https://community.mp3tag.de/u/Joke)\
**Post date:** [September 4, 2007, 7:45am UTC](https://community.mp3tag.de/t/dano-export-configs/3978/23 "2007-09-04T07:45:12Z")

</div>

Hello  
Thanks for your great config files  
I use dano\_List\_Album\_dir\_js\_ex  
but how do i have to edit the mte-file to create a html without the Genre-column?  
and like Sam I want to create EXACTLY the structure of the folders/files  
For Example in my folder I:\Musik\MP3's\The Kooks\ I have some mp3s which do not belong to a certain Album but I also so have a full album in I:\Musik\MP3's\The Kooks\Inside In, Inside Out and that's a problem when creating a html.  
Is there a solution now?  
thanks  
joke

---

<div class="post-metadata">

**Author:** ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)\
**Post date:** [September 26, 2007, 1:27pm UTC](https://community.mp3tag.de/t/dano-export-configs/3978/24 "2007-09-26T13:27:02Z")

</div>

> [@Peregrino](#):
>
> Kockroach:  
> ...I took advantage of the arist and album loops and made a unique ID with the following pattern: XXXYY, where _XXX_ is the number of artist and _YY_ the number of the album by that artist, this way there's no chance two albums getting the same ID.

Unrue. E.g. I have multiple commercial albums under same artist and title. To solve this I tag with the EAN/UPC... except where there's none 😉

---

<div class="post-metadata">

**Author:** ![Lupercus](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lupercus/32/215_2.png) [@Lupercus](https://community.mp3tag.de/u/Lupercus)\
**Post date:** [December 14, 2007, 3:41pm UTC](https://community.mp3tag.de/t/dano-export-configs/3978/25 "2007-12-14T15:41:07Z")

</div>

Hi!  
Just stumbled upon MP3Tag and your exportfiles and I must say I'm impressed - exactly what I needed. Wonderful program and exporting capabilities! Thank you for that. I use dano\_List\_Genre\_js\_ex.mte

I made some small alterations to overcome the tons of HTML errors ( f.i. \<-- comment --\> and a different javascript declaration). However, one thng escapes me. The script uses an ID that is made up by f.i. the album name. But album names mostly have unallowed characters in them, like spaces or brackets, so the HTML validator screams at that.  
Wouldn't it be possible to use ID's that are composed of the numbers your script generates for the albums? After all, they are unique numbers and that is compliant with HTML standards.

I have fiddled around a bit to see how that can be done, but apparantly my programming skills are lacking here.  
Does anybody perhaps have a suggestion or point me in the right direction?

---

<div class="post-metadata">

**Author:** ![Lupercus](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lupercus/32/215_2.png) [@Lupercus](https://community.mp3tag.de/u/Lupercus)\
**Post date:** [December 15, 2007, 5:39pm UTC](https://community.mp3tag.de/t/dano-export-configs/3978/26 "2007-12-15T17:39:27Z")

</div>

OK, I found the solutions for the HTML validation errors. Via trial and error I changed some parts of the code slightly. Should you be interested, please PM me.

Update  
I adapted the original script a bit further and added some things, f.i. a different behaviour for the genre "Classical" (composers, artists and conductors are more interesting there). Plus  
it is now valid HTML 4.01 strict.  
You could see it in action on [this webpage.](http://www.lupercus.eu/muziek/hd/)

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [August 15, 2009, 11:43pm UTC](https://community.mp3tag.de/t/dano-export-configs/3978/27 "2009-08-15T23:43:23Z")

</div>

> [@Peregrino](#):
>
> I've noticed a weird behavior when exporting from directories with weird filenames. In my case, I was trying to export the info of the tracks on my iPod. I opned the the root of the iPod with MP3Tag, select all and export. When the export finished and switched to firefox to see the html, I noticed that when I clicked the artist name, there were several copies of the same album listed.  
> I knwo a couple of things on programming and MP3Tag scripting, so I opened the mte in notepad2 and search for my problem. After some looking at the code, I finally found what I was looking for. Apparently you loop the files first by the ID3 tag Artist, and then you loop again by each folder in the directory. This works OK if your directory is well organized, but in some cases (as the iPod wich has it's own folder structure) this results in several copies of the same album getting listed.  
> The solution I've found was to change the "loop by" variable from %\_folderpath% to %album%.
> 
> There's another "bug" that I've faced: If some artist has a name with a single quote " ' ", you can't expand that artist's name to see the albums. For example, if you have "Guns N' Roses", you couldn't see their albums.  
> The way I found to solve this was to add a replace just like in it's done in the album's section, replacing the single quote in the javascript function show() with an escaped single quote " ' ":
> 
> Replace this:
> 
> ```
> <td id="id%artist%" class="row2" width="40%%"><b><a href="java script:show(''%artist%_'');">%artist%</a></b></td>
> 
> ```
> 
> With this:
> 
> ```
> <td id="id%artist%" class="row2" width="40%%"><b><a href="java script:show(''$replace(%artist%,'','\''')_'');">%artist%</a></b></td>
> 
> ```
> 
> Another add-on that I made was that if the artist has more than 1 album, it writes "Albums", otherwise it just writes "Album".
> 
> Just replace this line:
> 
> ```
> <td class="row2" align="right" width="32%%">$loop(%album%,1)$loopend() %_max_counter% Album(s) %_total_size% | %_total_files% Files | %_total_time% hrs </td>
> 
> ```
> 
> With this other:
> 
> ```
> <td class="row2" align="right" width="32%%">$loop(%album%,1)$loopend() %_max_counter% Album$ifgreater(%_max_counter%,1,'s',) %_total_size% | %_total_files% Files | %_total_time% hrs </td>
> 
> ```
> 
> Finally, if you're a format maniac like me, you won't like to have the tracks numbers listed with different lenghts (ie: 1,2,03,04,05,6,7). To normalize all tracks to 2 digit format replace this:
> 
> ```
> [%track% |]%title%
> 
> ```
> 
> $loopend()
> 
> With this:
> 
> ```
> [$num(%track%,2) |]%title%
> 
> ```
> 
> $loopend()
> 
> I hope this helps in someway to the developing of this great template!!
> 
> 😉 Peregrino

To Peregrino:

You have put the icing on the cake! Dano's export configuration is very good but I am also a format fanatic, so the improvements that you provided are very welcome. I wonder why they have not been incorporated into the "official" code. Thanks for your efforts.

---

<div class="post-metadata">

**Author:** ![peregrino](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/c37758/32.png) [@peregrino](https://community.mp3tag.de/u/peregrino)\
**Post date:** [August 18, 2009, 10:49am UTC](https://community.mp3tag.de/t/dano-export-configs/3978/28 "2009-08-18T10:49:36Z")

</div>

> [@ryerman](#):
>
> You have put the icing on the cake! Dano's export configuration is very good but I am also a format fanatic, so the improvements that you provided are very welcome. I wonder why they have not been incorporated into the "official" code. Thanks for your efforts.

Thanks! I don't know why they didn't update the official macro, but most probably because the macro is abandoned.

As a remainder, please do not reply in topics whose latest post is more than 2 years old. As a matter of fact, they should be closed to new comments...

Peregrino

---

<div class="post-metadata">

**Author:** ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)\
**Post date:** [August 18, 2009, 11:00am UTC](https://community.mp3tag.de/t/dano-export-configs/3978/29 "2009-08-18T11:00:16Z")

</div>

> please do not reply in topics whose latest post is more than 2 years old.

Why??

[Previous page](https://community.mp3tag.de/t/dano-export-configs/3978.md?page=1)
