2011-12-31, 19:28
Example file names:
1. 24v2 - Fist [ACX][640x480][DVD].mkv
2. 01 - Sign Up [GotWoot][1280x720][HDTV].mkv
3. 1 - OVA [NoS][704x336][DVD]
4. C1 - Opening 1 [TSR][720x480][DVD]
5. 101 - SLAM DUNK! [ANF & A.A][DVD][640x480]
I've tried using ()([0-9]+)(-[0-9]+)?[\._ \-] Which works for the majority but picks up #1 as Episode 2 and #4 as episode 1 and other similar file names.
So I've tried to make my own Regex using
http://regexpal.com/
http://www.jslab.dk/tools.regex.php
And came up with ^(\d*) which appears to work fine on regexpal as all my animes start with episode number and believed it would be sufficient. However it causes xbmc to freeze.
Looking at the log:
17:12:31 T:2968689520 NOTICE: VideoInfoScanner: Starting scan ..
17:12:31 T:2968689520 DEBUG: VideoInfoScanner: Found episode match /home/xbmc/media/videos/anime/s-cry-ed (2001)/01 - kazuma [acx][640x480][dvd].mkv (s0e0) [()(^[0-9]*)]
17:12:31 T:2968689520 DEBUG: VideoInfoScanner: Adding new season 0, multipart episode 0 [^[-_EeXx]+([0-9]+)]
17:12:41 T:6285088 DEBUG: Previous line repeats 629344 times.
Any ideas? Am I missing something out?
1. 24v2 - Fist [ACX][640x480][DVD].mkv
2. 01 - Sign Up [GotWoot][1280x720][HDTV].mkv
3. 1 - OVA [NoS][704x336][DVD]
4. C1 - Opening 1 [TSR][720x480][DVD]
5. 101 - SLAM DUNK! [ANF & A.A][DVD][640x480]
I've tried using ()([0-9]+)(-[0-9]+)?[\._ \-] Which works for the majority but picks up #1 as Episode 2 and #4 as episode 1 and other similar file names.
So I've tried to make my own Regex using
http://regexpal.com/
http://www.jslab.dk/tools.regex.php
And came up with ^(\d*) which appears to work fine on regexpal as all my animes start with episode number and believed it would be sufficient. However it causes xbmc to freeze.
Looking at the log:
17:12:31 T:2968689520 NOTICE: VideoInfoScanner: Starting scan ..
17:12:31 T:2968689520 DEBUG: VideoInfoScanner: Found episode match /home/xbmc/media/videos/anime/s-cry-ed (2001)/01 - kazuma [acx][640x480][dvd].mkv (s0e0) [()(^[0-9]*)]
17:12:31 T:2968689520 DEBUG: VideoInfoScanner: Adding new season 0, multipart episode 0 [^[-_EeXx]+([0-9]+)]
17:12:41 T:6285088 DEBUG: Previous line repeats 629344 times.
Any ideas? Am I missing something out?