Release [MOD] AniDB.net scrapers for TV shows and Movies
A few pointers:

The three capturing groups (the parts in brackets) should be for the season number, episode number, and multi-episode part only. Or a single group just for the episode number.
If you need to group anything else you should make it non-capturing by adding ?: after the opening bracket.

If you're using XBMC 12 Frodo, there is a flaw in the regex logic that lowercases the regex before processing, turning \D into \d, so keep that in mind.

The entire file path is checked by the regex, so including the ^ will cause the regex to fail as the file name is unlikely to be at the start. In fact it's usually better to have a $ at the end of the regex to force the match to just the file name.


I would try to keep the regex as simple as possible in terms of the match - if the episode number lies between a " - " and a " [", and that is a unique occurrence in the file name, don't complicate further.

Try:
Code:
- ()(\d+)((?:-\d+)*)(?:v\d+)? \[[^\\/]*$
Reply


Messages In This Thread
RE: - by scudlee - 2013-10-12, 17:42
RE: [RELEASE] [MOD] AniDB.net scrapers for TV shows and Movies - by scudlee - 2014-03-03, 15:25
Logout Mark Read Team Forum Stats Members Help
[MOD] AniDB.net scrapers for TV shows and Movies8