Export the total duration and volume (size) of the album

So, how proficient are you in reading and writing HTML code?
On shipment, a sample export script with HTML code is included.
You would have to adapt the sample code to your needs - it's a plain text file that can be edited with Editor.
Also, you can insert the missing variables into that script.

In repect to your second scenario: I doubt that the totals have already been counted when you create the filename with the function to create playlists..
A way out could be to first write an export script that contains batch file commands and the first command would be to create the filename. You would have to $loop() through the list of files silently (no output), then export the filenames.

A sample for a file that creates playlists with a batch file see here: