Kodi Community Forum
Regex for extracting TV Show details from file path - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60)
+--- Thread: Regex for extracting TV Show details from file path (/showthread.php?tid=195199)



Regex for extracting TV Show details from file path - faizanjehangir - 2014-05-15

Hi all,

I am using XBMC's avancedsettings.xml to extract tv show details from a file directory path. With everything in right place, none of the regExp in <tvshowmatching> tag seem to work on the file path. This is my sample file path:

/mnt/sdcard/Hannibal/Season 1/Hannibal.S01E01.HDTV.x264-LOL.mp4

I want matcher grouping such that I have:

SeasonName: Hannibal
SeasonNumber: 1
EpisodeNumber: 1

How can I resolve this?


RE: Regex for extracting TV Show details from file path - gbandit - 2014-05-16

Post your <tvshowmatching> section as well as a debug log of the scrape occurring for the file you mention.