2010-10-31, 08:27
I'm a noob and should read more posts XP
<regexp>(?i)[/\\]season[^\w]?(\d{1,2})[^\d]*[/\\]\[.+?\].*(?:[\. _-]|ep)(\d{1,3})[\. _-v].*[[({][\da-z]{8}[])}]</regexp>
<regexp>(?i)[/\\]\[.+?\].*()(?:[\. _-]|ep)(\d{1,3})[\. _-v].*[[({][\da-z]{8}[])}]</regexp>]
(?:[/\\]season[^\w]?(\d{1,2})[^\d]*)?[/\\]\[.+?\].*?(?:[\. _-]|ep)(\d{1,3})(?:v\d+)?[\. _-](?:[[({].*?[])}])*?(?:[[({][\da-z]{8}[])}])?
xexe Wrote:I am not a huge fan of renaming at all TBH. If you are using sickbeard then you can easily end up with folder scene names and if some my regex + xbmc will get almost 100% match without renaming.
You are right it is likely anime will not create false positives however you have to keep in mind literally thousands of users all over the world use my regex so I need to be careful. If no one renamed I could be quite confident not to get false positives but because people do I have to cater for an infinite amount of user nonsense.
anyways the change is done, anime regex is prepend as of the next version.
snyft Wrote:So i just need to add the old anime regex to prepend or i should use the version you told me to test? Have been abit busy with irl issues.The old one should work fairly well if you just move it to prepend. It shouldn't really interfere with any other shows. The problem was all the other xbmc ones are so loose that they could steal it before it ever got down to the anime regex.
Buttink Wrote:Your right ... renaming blows (I did make an app for that). But, I found out that (?: ) is a group that isnt captured .... I feel retarded.
HERE is a super specific anime regex that is kind long winded just for my own clarity.
Code:(?:[/\\]season[^\w]?(\d{1,2})[^\d]*)?[/\\]\[.+?\].*?(?:[\. _-]|ep)(\d{1,3})(?:v\d+)?[\. _-](?:[[({].*?[])}])*?(?:[[({][\da-z]{8}[])}])?
It basically first checks to see if there is a "/Season ##" and if there isn't we don't care because group 1 can be null. I'm not entirely positive this works with XBMC because i have been using external regex testers for this. So, I don't know if group not found is the same as a group with no text. Then, you look for the [SUBGROUP]. After that, the name of the show we dont really care about so we just go to "- ##" and see if there is a "v#" after. After that, just searching for matching [({ with the last one being the CRC32. Granted with the matching [({ and making the CRC32 optional, the CRC32 group itself is redundant but eh whatever.
The only problem I see with this is someone trying to be cute and putting ((TEXT)) or something like that.
<tvshowmatching>
<regexp>[^._\-]()([0-9]+)(-[0-9]+)?</regexp>
</tvshowmatching>