Kodi Community Forum
tvshowmatching on folders - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: tvshowmatching on folders (/showthread.php?tid=89479)



tvshowmatching on folders - ravelord - 2011-01-04

Suppose I have the following structure for my TV Episodes:

/TV Showname/Season 1/TV.Showname.S01E01.DVDrip.xvid-Bla/file.rar
/TV Showname/Season 2/TV.Showname.S02E01.DVDrip.xvid-Bla/file.avi

And I would want to get the Season and Episode number with a custom regexp - would it be possible to fetch it from the folder name or does XBMC expect it in the file name?

I have tested with a custom regexp

(?i)/Season ?(\d{1,2})/.*?s\d{1,2}E(\d{1,2})

which should get the season and episode number from the folders instead of the file but it keeps saying 21:44:06 T:2787105648 M:1927057408 DEBUG: VideoInfoScanner: Could not enumerate file rar:///TV/Curb Your Enthusiasm/Season 1/Curb.Your.Enthusiasm.S01E01.DVDRip.XviD-VFUA/curb.part1.rar/curb.avi

Is this possible at all? According to the wiki it should get it from the file path but I am suspecting at least the episode number should always be in the file name.. I am using latest 10.0 stable release.

I am also using the latest 2.2 http://forum.xbmc.org/showthread.php?tid=51614 in combination with my own custom regexp