Because of sake of other users who might found it useful, I think it was a good idea not to open new topic but to activate old one you started, both of them upon same issue.
I thought it seemed familiar...
Thanks. Topics merged.
Considering this, I suggest to pin a topic with proven regexps for different syntax of file names.
Hmmm... If one were deciding what filename structures to use that would work in PVD, there are a variety of answers easily determined by examining the regex. The problem is, most users already have files and would rather not have to change them to suit the regex provided. Users in that circumstance have to accept the choice they face: Either modify the regex to suit their filenames, or change their filenames to suit the regex. Then there are those who not only use patterns not recognized by the regex provided, they use a variety of different patterns. That, of course, makes everything more complicated. Generally, each pattern will require it's own regex, and more care will be necessary to ensure the regex don't conflict with one another and are processed in the correct order.
My point is, we would never be able to pin down a finite number of filename pattern sets in use. And it would mean listing a complete set of regex (in the correct order) for each. It would be much easier—and probably more useful—to document the intended purpose of each of the regex provided, together with examples of filename patterns that are correctly interpreted by each one. From that, it might be easier for a user to find a filename pattern close to what they are using, and then determine what modification is necessary so it would work for them.
This is the format I'm imagining...
| Type/Regex/Example | Comments |
|
Type: | 1. Series (title in filename) | folder ignored |
Regex: | (?i)^.*\\(?P<title>.*)(s|\b)(?P<season>[0-9]{1,3})e(?P<episode>[0-9]{1,3}) | case insensitive |
Example: | Series title s01e01 remainder ignored.ext | 1-3 digit series/episode numbers |
Variation: | Series title S01 E01.ext | add a space before the "e" |
|
|
|
Type: | 2. Series (hyphen-delimited with episode title) | folder ignored |
Regex: | (?i)^.*\\(?P<title>.*).?-.?(?P<season>[0-9]{1,3})x(?P<episode>[0-9]{1,3}).?-.?(?P<eptitle>\w*\b) | does "\w*\b" match a one |
Example: | Series title - 1x001 episodetitle.ext | word episode title only? |
Variation: | Series title - 1x001 episode title.ext | ...change to "\..{3,4}" |
|
|
|
I could post the skeleton of such a thing, and then others could help flesh it out by posting suggestions and examples to the topic (e.g., "here's another example for type 1..."). I would then add those to the top post. Users could also post their personal modifications in the same format (e.g., "type 2 did not work for my series filenames, so I replaced it with this...").
Would such a topic be helpful, or too mind-numbing to be of any use?