2011-04-27, 16:09
Deebster Wrote:I'm very comfortable with regexes but I'm not having any luck here.
I've simplified one of the rules and got:
Code:s(\d{1,2})/.*\Wep0?(\d{1,2})\W([^/]*)
However, I still see
DEBUG: VideoInfoScanner: Could not enumerate file /files/tv/How TV Ruined Your Life/s01/How TV Ruined Your Life ep01 Fear.WnA.avi
The regex matches the string (although this version doesn't have the initial slash). Does the regex match the whole path or does it do ^regex$ on the path after the episode folder?
(Full log is http://pastebin.com/0MFavVwy)
Thanks in advance
Having looked at the source I see that the regex does operate on the full path.
More usefully, I have found that on my system* I cannot use \W. Replacing \W with [^\w] makes things work.
[Edit]Looking at the log, it seems that the file and the regex are converted to lower case, so \W and \w (and \D and \d, etc) are identical.
Eg:
Code:
<regexp>(?:ep?|pa?r?t)[\._ \-]?(\D+)[^\d]</regexp>
Code:
DEBUG: VideoInfoScanner: Found episode match /files/tv/10 minute tales/10 minute tales e01.avi (s1e1) [(?:ep?|pa?r?t)[\._ \-]?(\d+)[^\d]]
Seems like a bug to me...
* Linux (Ubuntu 10.04.2 LTS, 2.6.32-26-generic i686). Built on Mar 9 2011 (Git:Unknown) installed from LiveCD