I create an HTML output to copy and paste into Excel. Here I can add times (length of track or album) and everything is in one place. The problem I'm having is that "Sometimes" the copy and paste doesn't work and I have no clue as to why. I've checked all input data and their all the same yet instead of seperate cells as in the output of the HTML I end up with a string. But it doesn't happen all the time, like I said before only "Sometimes". It could be only with 2 entries or 35 entries. The file will give you an idea of what I'm talking about.
To be quite honest: I cannot see any HTML code - I only see output.
So the export script would be quite nice.
But when I hear "Excel" I think of CSV files and not HTML.
It might be much easier to get the data where you want to treat it if you create a plain text output with $char(9) (=Tab character) as separator.
And did you know that you already now in an export you can output the length of each track and add it up to a total length of all those selected files?
The HTML code is the same code used in MP3Tag to produce an HTML_standard page. The difference between the original code and the one I'm using is that there are two blank columns prior to the length (time)column and I do have the total time in the HTML code. I've tried the csv file type and it does go into Excel however all I end up with is one big string of data not a spreadsheet , unless there's a way of converting the data into a spreadsheet and if there is I have no clue how to do it and as far as a csv file is concerned you can only use 1 csv file per page where copying and pasting the results of a HTML page is continuous.You ought to try it just once and see what the outcome is, much easier than that csv mess.
I have found that if you produce an HTML page with a large amount of data, about 2000 entries, I have found some really strange stuff like double entries and sometimes entries left out. I've attached the results of the HTML (copy,paste) vs csv just so you can see the difference and if you want the code from MP3Tag for the HTML output I'll be more than happy to post a copy.
The workflow should be modified from copy&paste to "Export, then open in Excel".
See the Excel File>Open options where you can select CSV as file type.
Still, the ordinary CSV export script could be modified in such a way that the semicolon is replaces by a tab character as this usually avoids problems with data that already contains a semicolon.
Also, this thread may be of interest as it deals with the total length:
Just to give you an impression of a simple csv-export script:
Select a couple of files,
Create a new export,
copy the code and overwrite with it the sample export script of the new export.
Save the export script
Execute the export.
If everything is set to normal in your system, then you will probably be asked whether you want to open the result in Excel.
I looked at the csv script that comes wit MP3Tag and it's similar or about the same as HTML except it's called in the script csv. I tried it in Excel, had to find out how to do it but after fooling around with it it came out ok. Basically I can move things around and delete what I don't want to satisfy what I want the results to look like except for one item, LENGTH. Not being familiar with csv I looked it up and I'm guessing that because it is a text file it doesn't work with time. There is an entry in the csv script for time(length) %_length_seconds% but it only comes out a number like if the track length was 02:45 it comes out like 151. Other than it is a lot faster than copy and paste
Have a look at the help on export: https://docs.mp3tag.de/export
More at the bottom of the page you find some more variables that you might use for your export.
To see the length of a file use %_length% (not %_length_seconds%)
To see the total length of the set, place the output of %_total_length% behind the last $loopend() statement.
And: csv and HTML are by no means similar. I don't know what you compared.
By no means did I enter the expression %_length_seconds%, it's already there in the expression when you open the csv file in MP3Tag. I just said that it was already there and I didn't know why it didn't work. In regards to comparing csv to HTML maybe I should have said CSS and the reason why is the expressions are almost written the same as that if you open up the html_standard that is in MP3Tag. There are similarities and I know they are a different style of output.
Haven't looked at the link you provided as of yet but I will, definitely.
I found that using %_lenght_seconds% converts the minutes to seconds and if you want the data in Excel to be minutes and seconds you must convert. After reading the options for exporting I learned a lot. Have no problem importing the data using csv. I never used that format even though I knew it existed but never knew how to convert the result to a be meaningful, much, much quicker importing data. I'm glad you told me about it and many thanks.