Started on: 2010-02-24
last update: 2010-02-24
Summary:
The current RegEx-Pattern for recognizing stackable multipart movies is not able to cope with ".cd1" & ".cd2"...
Area:
Videos, FileStacking, Multipart movies / images
Description:
As of now the Regular Expression for finding matches looks like this:
Therefore none of the two patterns above would ever match the "." (dot) in front of the cd, disk, part or whatever
My question is are there reasons why there wouldn't be a dot added to the expression like this: "[.-_+ ] etc.
Would this break other functionality???
regards,
Anthrax who is going nuts renaming .cd to -cd ;-)
last update: 2010-02-24
Summary:
The current RegEx-Pattern for recognizing stackable multipart movies is not able to cope with ".cd1" & ".cd2"...
Area:
Videos, FileStacking, Multipart movies / images
Description:
As of now the Regular Expression for finding matches looks like this:
Code:
\Core\Util\Util.cs
public static string[] StackExpression()
{
// Patterns that are used for matching
// 1st pattern matches [x-y] for example [1-2] which is disc 1 of 2 total
// 2nd pattern matches ?cd?## and ?disc?## for example -cd2 which is cd 2.
// ? is -_+ or space (second ? is optional), ## is 1 or 2 digits
//
// Chemelli: added "+" as separator to allow IMDB scripts usage of this function
//
string[] pattern = {
"\\[[0-9]{1,2}-[0-9]{1,2}\\]",
"[-_+ ]\\({0,1}(cd|dis[ck]|part|dvd)[-_+ ]{0,1}[0-9]{1,2}\\){0,1}"
};
return pattern;
}
Therefore none of the two patterns above would ever match the "." (dot) in front of the cd, disk, part or whatever
My question is are there reasons why there wouldn't be a dot added to the expression like this: "[.-_+ ] etc.
Would this break other functionality???
regards,
Anthrax who is going nuts renaming .cd to -cd ;-)