Author Topic: XBMC TV show regexp settings  (Read 1341 times)

Offline zetafunction

  • Member
  • Posts: 2
XBMC TV show regexp settings
« on: January 14, 2010, 06:06:48 AM »
Since I don't like renaming files, and I saw a couple of people ask about this in the past, here's my advancedsettings.xm l for XBMC to parse out the seasons/episodes that's work for all the torrents I've downloaded from here so far:

Code: [Select]
<advancedsettings>
  <tvshowmatching>
    <regexp>Season (\d+)[\\/][^\\/]*(?&lt;!h)(?!264)(\d\d)(?&lt;!h264)((?:\[[^\[\]]*\]|\([^()]*\)|[^\\/\[\]()]|\d(?=\D))*\.[^\\/.]+)</regexp>
    <regexp>Season (\d+)[\\/][^\\/]*(\d{2})([^\\/\d]*\.[^\\/.]+)</regexp>
  </tvshowmatching>
</advancedsettings>

To use this, just save it to a file called "advancedsettings.xm l" in %APPDATA%\XBMC\userdata. It could use some tweaking and optimization, but it's something to start from.

Improvements, suggestions, and further tweaks are welcome.

Mikan

  • Guest
Re: XBMC TV show regexp settings
« Reply #1 on: January 14, 2010, 06:19:45 AM »
Ty for code & welcome to the wonderful forums ;) and baka itself (since ur acc's 1day old)