Help - Search - Members - Calendar
Full Version: Simple export text help
Mp3tag Forums > Mp3tag - International > Development > Export
LorD NoX
Hello, at first, I wanted to create my own "code" by folowing some manual... But Since I didn't find any tutorial on how to create those, I manage to create something.

CODE
$filename(txt)
$loop(%_path%)%track% - %artist% - %album% - %title%
$loopend()


The output, for the Queen of the Damned OST would be:

QUOTE
3 - Chester Bennington of Linkin Park - Queen of the Damned - System
2 - David Draiman of Disturbed - Queen of the Damned - Forsaken
4 - DefTones - Queen of the Damned - Change (In The House of Flies)
9 - Disturbed - Queen of the Damned - Down With The Sickness
12 - Dry Cell - Queen of the Damned - Body Crumbles
11 - Earshot - Queen of the Damned - Headstrong
7 - Godhead - Queen of the Damned - Penetrate
8 - Jay Gordan - Queen of the Damned - Slept So Long
14 - KidneyThieves - Queen of the Damned - Before I'm Dead
5 - Marilyn Manson - Queen of the Damned - Redeemer
6 - Papa Roach - Queen of the Damned - Dead Cell
10 - Static X - Queen of the Damned - Cold
13 - Tricky - Queen of the Damned - Excess
1 - Wayne Static of Static X - Queen of the Damned - Not Meant For Me


I am halfway done since I managed to get all the info I wanted. however I need some help for the formating. What I need is:

- Entry are sorted by track number
- An extra space after the track number for number 1 to 9 (so entry are more aligned)
- How do I add static text ??

Thanks for the help

NoX
milka
CODE
$filename(txt)
This is static text.

$loop(%track%)$if($eql($len(%track%),1),%track% ,%track%) - %artist% - %album% - %title%
$loopend()
LorD NoX
Merci Milka, you got some of my problems resolved, however the "sort by track number" function dosen't work like it should:

CODE
1  - Wayne Static of Static  X - Queen of the Damned - Not Meant For Me
10 - Static X - Queen of the Damned - Cold
11 - Earshot - Queen of the Damned - Headstrong
12 - Dry Cell - Queen of the Damned - Body Crumbles
13 - Tricky - Queen of the Damned - Excess
14 - KidneyThieves - Queen of the Damned - Before I'm Dead
2  - David Draiman of Disturbed - Queen of the Damned - Forsaken
3  - Chester Bennington of Linkin Park - Queen of the Damned - System
4  - DefTones - Queen of the Damned - Change (In The House of Flies)
5  - Marilyn Manson - Queen of the Damned - Redeemer
6  - Papa Roach - Queen of the Damned - Dead Cell
7  - Godhead - Queen of the Damned - Penetrate
8  - Jay Gordan - Queen of the Damned - Slept So Long
9  - Disturbed - Queen of the Damned - Down With The Sickness


Would it be possible to make the filename has the same name as the folder in wich are the songs ?
dano
CODE
$filename(%_directory%.txt)
This is static text.

$loop($num(%track%,3))$if($eql($len(%track%),1),%track% ,%track%) - %artist% - %album% - %title%
$loopend()
LorD NoX
Dano, your latest code works, tk.

HOwever, I want to add static test with lots of odd ascii caracters in it.
Every time I try to add it, I end with a error message like: [ SYNTAX ERROR IN FORMATTING STRING ]

Is there a way to mark lines as comments so they wont be taken as code ? It don't even work if I remove all the "$" in my ascii text.

regards

NoX
dano
The characters []$% have special functions, you must enclose them with '
'$'

Or if you put the whole text in ' it could also work
And if you want to use ' you must write it twice ''

Or $char(36) -> $
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.