Kodi Community Forum

Full Version: Regex for extracting TV Show details from file path
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Post your <tvshowmatching> section as well as a debug log of the scrape occurring for the file you mention.