The explanation goes better with an example
Suppose I have 5 mp3 files named as
1.mp3
2.mp3
3.mp3
4.mp3
5.mp3
Say, I just want to creat directory for those files with name less than 3. The expected result is therefore
1\1.mp3
2\2.mp3
3.mp3
4.mp3
5.mp3
with the following filename - filename script
mask for old name: %1
mask for new name: $if($less(%1,3),%1\,)%1
I have now the result
1\1.mp3
2\2.mp3
2\3.mp3
2\4.mp3
2\5.mp3
Simply put, the scripting engine does not reset directory when handling multiple files
DetlevD
#2
It seems, that you have found a bug.
See another example:
Converter Filename - Filename
Mask old: %1
Mask new (Formatstring):
$if($less($num(%1,1),3),$num(%1,1)'\'%1,%1)
"O:\TEST\T1\Folder\01 - Music.mp3" ->
"O:\TEST\T1\1\01 - Music.mp3"
"O:\TEST\T1\Folder\02 - Music.mp3" ->
"O:\TEST\T1\2\02 - Music.mp3"
"O:\TEST\T1\Folder\03 - Music.mp3" ->
"O:\TEST\T1\2\03 - Music.mp3"
"O:\TEST\T1\Folder\04 - Music.mp3" ->
"O:\TEST\T1\2\04 - Music.mp3"
"O:\TEST\T1\Folder\05 - Music.mp3" ->
"O:\TEST\T1\2\05 - Music.mp3"
Converter Tag - Filename
Formatstring:
$if($less($num(%_filename%,1),3),$num(%_filename%,1)'\'%_filename%,%_filename%)
"O:\TEST\T1\Folder\01 - Music.mp3" ->
"O:\TEST\T1\1\01 - Music.mp3"
"O:\TEST\T1\Folder\02 - Music.mp3" ->
"O:\TEST\T1\2\02 - Music.mp3"
"O:\TEST\T1\Folder\03 - Music.mp3" ->
"O:\TEST\T1\Folder\03 - Music.mp3"
"O:\TEST\T1\Folder\04 - Music.mp3" ->
"O:\TEST\T1\Folder\04 - Music.mp3"
"O:\TEST\T1\Folder\05 - Music.mp3" ->
"O:\TEST\T1\Folder\05 - Music.mp3"
As you can see, there is a workaround.
DD.20110210.2319.CET
Florian
#3
This is now fixed with Mp3tag v2.90e.
Florian
closed
#4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.