IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

Abbreviations: (will be specified by moderators/administrators)





[X]No Bug[C]Confirmed Bug Report
[F]Fixed Bug[LP]Low Priority Bug Report
[AF]Awaiting Feedback

 
Reply to this topicStart new topic
> Backslash bug when handling multiple files
ZEROplu
post Feb 10 2011, 21:52
Post #1


Member


Group: Members
Posts: 1
Joined: 10-February 11
Member No.: 13782
Mp3tag Version: 2.48



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
Go to the top of the page
 
+Quote Post
DetlevD
post Feb 10 2011, 23:16
Post #2


Member


Group: Full Members
Posts: 4888
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



QUOTE (ZEROplu @ Feb 10 2011, 21:52) *
... the scripting engine does not reset directory when handling multiple files

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)

CODE
"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%)

CODE
"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

This post has been edited by DetlevD: Feb 11 2011, 10:45


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th August 2014 - 19:04