Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Masstager/move,rename or copy files strange behavi (Read 3443 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Masstager/move,rename or copy files strange behavi

I've tries to use something like this in filename format:
$replace($lower(ch'!'gfh\fghgfh\fghfgh\fhGGGfgh), ,_,char(44),_,!,_,char(39),_)

and it gives me a SYNTAX ERROR in move,rename or copy dialog in the preview on the left of main dialog.

But in other places where tagz are apropriate, this string works fine... Even in the move,rename or copy dialog this works fine in the subdialog to edit formating string.

Please help!!!

foobar2000 v0.8.3

Masstager/move,rename or copy files strange behavi

Reply #1
two "$" are missing.

Code: [Select]
$replace($lower(ch'!'gfh\fghgfh\fghfgh\fhGGGfgh), ,_,$char(44),_,!,_,$char(39),_)

Masstager/move,rename or copy files strange behavi

Reply #2
Quote
two "$" are missing.

Code: [Select]
$replace($lower(ch'!'gfh\fghgfh\fghfgh\fhGGGfgh), ,_,$char(44),_,!,_,$char(39),_)

[a href="index.php?act=findpost&pid=308773"][{POST_SNAPBACK}][/a]

Oh hell, thank you very much!!!

Masstager/move,rename or copy files strange behavi

Reply #3
Quote
two "$" are missing.

Code: [Select]
$replace($lower(ch'!'gfh\fghgfh\fghfgh\fhGGGfgh), ,_,$char(44),_,!,_,$char(39),_)

[a href="index.php?act=findpost&pid=308773"][{POST_SNAPBACK}][/a]

But this doesn't work either... And only in rename, move, copy dialog...

Masstager/move,rename or copy files strange behavi

Reply #4
I understood what $char(44) and (39) are... and now,

Code: [Select]
$replace($lower(%title%), ,_,',',_,!,_,'',_)


edit : I tried both in "move, rename or copy", and they worked fine. Seems like it's another.

Masstager/move,rename or copy files strange behavi

Reply #5
Quote
I understood what $char(44) and (39) are... and now,

Code: [Select]
$replace($lower(ch'!'gfh\fghgfh\fghfgh\fhGGGfgh), ,_,',',_,!,_,'',_)

[a href="index.php?act=findpost&pid=308777"][{POST_SNAPBACK}][/a]

SYNTAX ERROR

Masstager/move,rename or copy files strange behavi

Reply #6
Quote
Quote
I understood what $char(44) and (39) are... and now,

Code: [Select]
$replace($lower(ch'!'gfh\fghgfh\fghfgh\fhGGGfgh), ,_,',',_,!,_,'',_)

[a href="index.php?act=findpost&pid=308777"][{POST_SNAPBACK}][/a]

SYNTAX ERROR
[a href="index.php?act=findpost&pid=308778"][{POST_SNAPBACK}][/a]


Even this doesn't work:
Code: [Select]
$lower(foo/bar)

Masstager/move,rename or copy files strange behavi

Reply #7
Quote
SYNTAX ERROR
[a href="index.php?act=findpost&pid=308778"][{POST_SNAPBACK}][/a]


Yes I also reproduced. I'd like to know how it is actually "ch'!'gfh\fghgfh\fghfgh\fhGGGfgh" (%artist%\%album%).

edit : I tried to replace "ch'!'gfh\fghgfh\fghfgh\fhGGGfgh" with %_path% and it worked.

Another example.

Code: [Select]
$lower($replace(%artist%, ,_,',',_,!,_,'',_))\
$lower($replace(%album%, ,_,',',_,!,_,'',_))\
$lower($replace(%title%, ,_,',',_,!,_,'',_))

Masstager/move,rename or copy files strange behavi

Reply #8
Quote
I've tries to use something like this in filename format:
$replace($lower(ch'!'gfh\fghgfh\fghfgh\fhGGGfgh), ,_,char(44),_,!,_,char(39),_)

and it gives me a SYNTAX ERROR in move,rename or copy dialog in the preview on the left of main dialog.

But in other places where tagz are apropriate, this string works fine... Even in the move,rename or copy dialog this works fine in the subdialog to edit formating string.

Please help!!!

foobar2000 v0.8.3
[a href="index.php?act=findpost&pid=308769"][{POST_SNAPBACK}][/a]

Your problem might be that the masstagger/renamer uses the '\' character as an end of line char. This means that you cannot use '\' inside functions such as $lower(). In the example given, foobar would read the string as
Code: [Select]
$replace($lower(ch'!'gfh\
fghgfh\
fghfgh\
fhGGGfgh), ,_,char(44),_,!,_,char(39),_)

Since
Code: [Select]
$replace($lower(ch'!'gfh
is not a valid string, you get a syntax error.

The new masstagger in 0.9 beta does not have such a limitation.