Exporting subdirectories and paths in any format!

html_standard.mte (2.0 KB)
closing the program and reposting

This is what we see (excluded the <head> styling part)

<body>
	<h1>Mp3tag - File Overview</h1>
	<p>%_date%</p>
	<table>
		<tr>
			<th class="title">Title</th>
			<th class="title">Artist</th>
			<th class="title">Album</th>
			<th class="title">Track</th>
			<th class="title">Year</th>
			<th class="title">Genre</th>
			<th class="title">Filename</th>
		</tr>

$loop(%_filename_ext%)
		<tr>
			<td$if($odd(%_counter%), class="odd",)>$replace(%title%,&,&amp;)</td>
			<td$if($odd(%_counter%), class="odd",)>$replace(%artist%,&,&amp;)</td>
			<td$if($odd(%_counter%), class="odd",)>$replace(%album%,&,&amp;)</td>
			<td$if($odd(%_counter%), class="odd",)>$replace(%track%,&,&amp;)</td>
			<td$if($odd(%_counter%), class="odd",)>$replace(%year%,&,&amp;)</td>
			<td$if($odd(%_counter%), class="odd",)>$replace(%genre%,&,&amp;)</td>
			<td$if($odd(%_counter%), class="odd",)>$replace(%_filename_ext%,&,&amp;)</td>
		</tr>
$loopend()

	</table>
	<p>built on %_date% with %_app% - the universal Tag Editor <a href="http://www.mp3tag.de/en/" title="Mp3tag Website">www.mp3tag.de</a></p>
</body>

There is no %_path% in your file. Not in the the column titles, not in the loop and not in the outputted lines itself.

html_standard(1).rar (901 Bytes)
Please see that

No difference, same file.

Are you sure that you pick up the correct file from the current Mp3tag configuration location?

From the folder openend in your windows explorer, change to the \export subfolder.
There you can find your current export *.mte

hank you
the problem lies absolutely in the wrong directory .
I used the files under the mp3tag /export directory that for unknown reason could be updated but then restored back to its default form due to admin rights
I copied the file in another directory and did again all the corrections with the same happening
Finally the folder under the appdata /roaming folder soled this awkward problem by just coping the updated file there (no adming rights )

Could you please show us your final working export script - just for the people finding this thread and interested in your solution. :wink:

<h1>Mp3tag - File Overview</h1>
<p>%_date%</p>
<table>
	<tr>
		<th class="title">Path</th>
		<th class="title">Title</th>
		<th class="title">Artist</th>
		<th class="title">Album</th>
		<th class="title">Track</th>
		<th class="title">Year</th>
		<th class="title">Genre</th>
		<th class="title">Filename</th>
	</tr>

$loop(%_path%)

		<td$if($odd(%_counter%), class="odd",)>$replace(%_path%,&,&amp;)</td><td$if($odd(%_counter%), class="odd",)>$replace(%title%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%artist%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%album%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%track%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%year%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%genre%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%_filename_ext%,&,&amp;)</td>
	</tr>

$loopend()

The final working script as complete *.mte file attachment would be nice too. :wink:

I assumed that you used the File>Export... Edit function.
That would have opened the correct file immediately.
The file system approach is, as you see, full of chances for errors.
Also, I would delete the data folder from the program folder so that you do not get mixed up again.

NOw a small help once again
I removed some useless tags and made my 'exportings'
the minor problem is that the sorting is not exactly on what i expected . Sorting is made by directory then by file name
what i have to change so sorting ca be made by title or filename?
thanks once again !

You would need 2 different export scripts as you cannot choose in the middle of the export how to sort.
Please see the documentation on export

and which role the $loop() instruction plays in respect to sorting.
Please note that you can stack $loop() statements so that you first sort by ARTIST, then by ALBUM and inside that album by TRACK.
This would require 3 $loop()s.
If you sort by _PATH then this includes already the filename.
If you only want to get the folder name, try _FOLDERPATH or _DIRECTORY.
If you want to sort files with the same _FOLDERPATH or _DIRECTORY, insert another $loop() for the next criterion.

OK this worked just by using title !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.