Kodi Community Forum

Full Version: regexp not working - however on regexptester it works
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This regexp:
Code:
<tvshowmatching>
         <regexp>Season ([0-9]+) Episode [0]*([0-9]+)[\\/]*</regexp>
     </tvshowmatching>
not working on these filenames:
Code:
Season 4/Friday Night Lights Season 4 Episode 02 - After The Fall.avi
Season 4/Friday Night Lights Season 4 Episode 03 - In the Skin of a Lion.avi
Season 4/Friday Night Lights Season 4 Episode 04 - A Sort of Homecoming.avi
Season 4/Friday Night Lights Season 4 Episode 05 - The Son.avi
Season 4/Friday Night Lights Season 4 Episode 06 - Stay.avi
Season 4/Friday Night Lights Season 4 Episode 07 - In The Bag.avi
Season 4/Friday Night Lights Season 4 Episode 08 - Toilet Bowl.avi
Season 4/Friday Night Lights Season 4 Episode 09 - The Lights In Carroll Park.avi
Season 4/Friday Night Lights Season 4 Episode 10 - I Can't.avi
Season 4/Friday Night Lights Season 4 Episode 11 - Injury List.avi
Season 4/Friday Night Lights Season 4 Episode 12 - Labouring.avi
Season 4/Friday Night Lights Season 4 Episode 13 - Thanksgiving.avi

however I tested it and it should work.
what is the problem ?
debug log. pastebin.

also no harm selection the zero. 09 is seen as 9.
Code:
21:49:34 T:2890248896  NOTICE: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
...
...
  <tvshowmatching>
                                                <regexp>Season ([0-9]+) Episode [0]*([0-9]+)[^\\/]*</regexp>
                                              </tvshowmatching>
                                            </advancedsettings>



21:49:51 T:2890248896   DEBUG: CPlayerCoreFactory::GetPlayers(smb://HOST/Media/Series/Friday.Night.Lights/Season 4/Friday Night Lights S04E01 - East of Dillon.avi)
21:50:03 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights
21:50:03 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%5fNight%5fLights%2eS02%2eDVDRip%5fXviD%2dFoV
21:50:04 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%5fNight%5fLights%2eS02%2eDVDRip%5fXviD%2dFoV/NFOs
21:50:04 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%2eNight%2eLights%2eS01%2eDVDRip%2eXviD%2dTOPAZ
21:50:04 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%2eNight%2eLights%2eS01%2eDVDRip%2eXviD%2dTOPAZ/NFOs
21:50:04 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%20Night%20Lights%20%2d%20Season%203
21:50:04 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Season4
21:50:04 T:2954383360   DEBUG: VideoInfoScanner: No (new) information was found in dir smb://HOST/Media/Series/Friday.Night.Lights/
21:51:38 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights
21:51:38 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%5fNight%5fLights%2eS02%2eDVDRip%5fXviD%2dFoV
21:51:38 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%5fNight%5fLights%2eS02%2eDVDRip%5fXviD%2dFoV/NFOs
21:51:38 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%2eNight%2eLights%2eS01%2eDVDRip%2eXviD%2dTOPAZ
21:51:39 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%2eNight%2eLights%2eS01%2eDVDRip%2eXviD%2dTOPAZ/NFOs
21:51:39 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Friday%20Night%20Lights%20%2d%20Season%203
21:51:39 T:2954383360   DEBUG: OpenDir - Using authentication url smb://user:[email protected]/Media/Series/Friday%2eNight%2eLights/Season4
21:51:39 T:2954383360   DEBUG: VideoInfoScanner: No (new) information was found in dir smb://HOST/Media/Series/Friday.Night.Lights/