Hi,
I recently noticed that if a field (eg group) has xxxx[yyy] in the source name, the end result will be xxxx[yyy (so without the ending ])
Problable some interference with it being a regex symbol ?
Version 4.7.9
Terminating bracket is lost in renaming process
Re: Terminating bracket is lost in renaming process
What is your format ?
using {group} should only result in "xxxx" OR "yyy"
using {group} should only result in "xxxx" OR "yyy"
Re: Terminating bracket is lost in renaming process
My complete format string is
{n}.{s00e00}.{t}.{vc}.{ac}{".$group"}{".$lang"}{fn.match(/[.]HI(?\=\\.)/)}{fn.match(/[.]HI$/)}
(can't say i remember why i prefixed with .$ , it's 4 years ago that i made this and i do not know the syntax anymore)
An generic example that has the problem would look like
aaaaaaaaaaaa.SbbEcc.HDTV.x264-XXX[yyyy].mkv
{n}.{s00e00}.{t}.{vc}.{ac}{".$group"}{".$lang"}{fn.match(/[.]HI(?\=\\.)/)}{fn.match(/[.]HI$/)}
(can't say i remember why i prefixed with .$ , it's 4 years ago that i made this and i do not know the syntax anymore)
An generic example that has the problem would look like
aaaaaaaaaaaa.SbbEcc.HDTV.x264-XXX[yyyy].mkv
Re: Terminating bracket is lost in renaming process
I can't reproduce the problem
Re: Terminating bracket is lost in renaming process
There's a good chance that this particular issue has been fixed with one of the more recent updates.
Re: Terminating bracket is lost in renaming process
xxxx[yyy] it wrong anyway so:
or if you REALLY want the ]
then you can do something like:GROUP[NOT GROUP but site Who Shared It]
Code: Select all
{group.replaceAll(/\[.+\]?/,'')}
Code: Select all
{group.match(/\[/) ? group+']' : group}
Code: Select all
{group.match(/\[/) && !group.contains(/\]/) ? group+']' : group}
Re: Terminating bracket is lost in renaming process
Great, thanks for the tips !
I am indeed not really interested in the [ ] part, so i decided to go for
I am indeed not really interested in the [ ] part, so i decided to go for
Code: Select all
{n}.{s00e00}.{t}.{vc}.{ac}{".${group.replaceAll(/\[.+\]?/,'')}"}{".$lang"}{fn.match(/[.]HI(?\=\\.)/)}{fn.match(/[.]HI$/)}