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

**URL:** https://community.mp3tag.de/t/export-the-total-duration-and-volume-size-of-the-album/54929
**Category:** Export
**Created:** [October 29, 2021, 7:47pm UTC](https://community.mp3tag.de/t/export-the-total-duration-and-volume-size-of-the-album/54929 "2021-10-29T19:47:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [October 29, 2021, 7:47pm UTC](https://community.mp3tag.de/t/export-the-total-duration-and-volume-size-of-the-album/54929/1 "2021-10-29T19:47:13Z")

</div>

Hi, it is possible to output a html document or playlist m3u that contains the following parameters?

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

or output a playlist whose playlist name includes the total duration of the tracks and the total volume of the album?

---

<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 29, 2021, 8:20pm UTC](https://community.mp3tag.de/t/export-the-total-duration-and-volume-size-of-the-album/54929/2 "2021-10-29T20:20:56Z")

</div>

Did you check the help on Export and the list of variables?  
[https://docs.mp3tag.de/export](https://docs.mp3tag.de/export)  
The list of variabels include

**Global placeholders** (providing totals for the preceeding $loop/$loopend)  
`%_total_files%` Total number of files  
`%_total_size%` Total file size (formatted output)  
`%_total_size_raw%` Total file size in bytes  
`%_total_time%` Total playing time (formatted output)  
`%_total_time2%` Total playing time (formatted output without days)  
`%_total_time_raw%` Total playing time in seconds

---

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [October 29, 2021, 10:09pm UTC](https://community.mp3tag.de/t/export-the-total-duration-and-volume-size-of-the-album/54929/3 "2021-10-29T22:09:26Z")

</div>

Yes, I read this section but I did not fully understand. In the **first scenario** I want to **export** these features from a folder of the music album in the form of html document, how can I do that? Is there a way to do this?

**These features are considered:**

- Total number of tracks
- Full size of album tracks
- Total duration of total tracks on an album
- Name of artist or artists (if there are several artists in the album)
- Year of publication
- Album name

The **second senario** is that I want to create a playlist from each album folder that in the **name of this playlist** file, the volume of the album folder and the total duration of all tracks are also exported, but when from %\_total\_size% and %\_total\_time% I use, these two items are not exported, where is the problem?

%artist% - %album% - **%\_total\_time%** - **%\_total\_size%**.m3u

Thank you for your help

 ![2021-10-30_013815](https://community.mp3tag.de/uploads/default/original/2X/f/fde7f6e6e523125a693e435e2409313c3b6fc074.png)

---

<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 30, 2021, 7:20am UTC](https://community.mp3tag.de/t/export-the-total-duration-and-volume-size-of-the-album/54929/4 "2021-10-30T07:20:59Z")

</div>

> [@Palladio](#):
>
> in the form of html document

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:

> [@Playlist Interpret](https://community.mp3tag.de/t/playlist-interpret/53236/):
>
> Hallo Forum, bräucht mal wieder Eure Hilfe. Hat jemand eine Idee wie ich eine automatisierte Playlist von jeden Interpreten erstellen kann ?? Momentan markiere ich alle Songs vom jeweiligen Interpreten --\> Datei -\> Playlist (ausgewählte Dateien). Da ich einige Hundert Interpreten habe suche ich nach einer automatisierten Lösung. So soll die Playliste dann aussehen --\> I:\Musik\Meine Playlisten Orginal\Meine Interpret - Beatles - Alle.m3u Vielleicht hat jemand eine Idee ?? Gruß Klaus
