XML and HTML export configuration file

Hey squonk63,

I made an adjustment to the "bitrate" that is reported for the album, so that it is actually the average bitrate instead of the bitrate from the first track in the album. The change uses the average bitrate calculation that is in dano's "html_dano_01_ex_mp3tag" export config.

I'll post the changes, but want to make sure it is okay with you and dano first.

Feel free to post any mod on my files.
I'm glad to know that there is someone else working on this...

Take the code, no problem.

It will probably be possible in the next release.

That would be cool to see scripting within the $loop() function. :smiley:

I have uploaded a file that contains the changes I made to the MTE, HTM and XSL files. You will notice that there are two sets of HTM/MTE files: one for MP3, and one for FLAC. I did this so that I can pull out and store information for my two directory paths.

I know I could have done it differently, such that there is only one MTE file, but there would still need to be a separate HTM file for each codec. So I just made paired files.

Here is the ZIP: XSL_Squonk_mod.zip (8.89 KB)

Some changes that I made:

-I modified the $loop(%artist%) to account for my %album artist% tag.--I use x:/music/mp3/artist(album artist)/album/track.mp3 for my directory structure. This allows me to use "Various Artist" for compilations, otherwise, it would not keep all the tracks from a compilation together. It will sort artists while ignoring "The " in the artist name, however it will still display the "The ". For example, "The Beatles" will be in the B's, not the T's.
-Under the album loop, I made the change to correct of the problem with the "#" symbol.
-I also added a line, which is now used in the XSL to store the average bitrate from the entire album. (courtesy of dano :slight_smile: )
-I changed the $loop(%_filename_ext%) to $loop($num(%track%,2)). I did this because it kept wanting to sort tracks alphabetically...rather than numerically.
-There is also a new line in the loop (beginning with "$puts"), which is the second half of the code from dano. This is what actually creates the average bitrate for all of the tracks in the album loop.
-I added a $replace function to shorten the codec. Just thought it would help clean up the actual page in Firefox and IE.
-I also added the which is the compression ratio and %. The actual bitrate and compression for the individual tracks now appear beneath the time and size in Firefox and IE.
-To clean up the web page, I also converted the samplerate to KHz. I also added a $replace function to add in the "&" between ID3V1 ID3V2 for MP3 files.
-For the filename and filenamepath, I added in the fix for the "#" symbol.

I think that is it. Some of these are just personal preference for the layout. Hope everyone likes it.

Edit: As dano noted above, the use of %_parent_directory% means you have to have 2.35a installed.

Edit 2: ZIP file updated on 2/11.

~Kockroach

XSL_Squonk_mod.zip (8.89 KB)

Just a note:
When I tested/modified these configs, I wasn't happy about the long time it takes to create the xml file.
So I replaced %_md5% with

<md5>$rand()$replace($replace($replace($replace($replace(%_filename%, ,),.,),-,),&,),'',)</md5>

A pseudo checksum that exports in no time and it seems to work. Of course there are lots of other ways to do it :slight_smile:

This should be possible with the current Development Build.

Hope you'll like it :slight_smile:

~ Florian

I love it! Thank you! :smiley:

One thing I noticed is that now if you use $loop(%track%) it sorts songs as follows: 1, 10, 11, 2, 3, etc. Quick change to $loop($num(%track%,2)) and it's fixed. Awesome stuff. Plus I made a change to the loop that pulls out the Artist. I reloaded the ZIP file with my changes. It is in this post.

I was wondering if anyone could help me load/set up this export config file seeing as I don't understand how to do so using Mp3tag.

And I wanted to know if it was possible to have artiist names show up first and when you clicked on them THEN the list of albums by them would pop up?

Thanks in advance.

I am using since a while the excellent MP3 Tag + md5_squonk XML export solution and everything works like a charm with IE but the search feature is not working with Mozilla !

I have done intensive research to troubleshoot this with no success

With Mozilla the issue is that when I click on the "find" button only an empty search result page is displayed. If I rename the "SearchResults.xsl" page I can see the query result data which is fully correct but not properly formatted at all. So it sounds like there is an issue with loading/activating the CSS with mozilla.

With IE the same CSS loads properly and shows proper results.

Any help to troubleshoot this will be greatly appreciated !

Regards