Discussion Forums > Technology
XBMC TV show regexp settings
(1/1)
zetafunction:
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: ---
<advancedsettings>
<tvshowmatching>
<regexp>Season (\d+)[\\/][^\\/]*(?<!h)(?!264)(\d\d)(?<!h264)((?:\[[^\[\]]*\]|\([^()]*\)|[^\\/\[\]()]|\d(?=\D))*\.[^\\/.]+)</regexp>
<regexp>Season (\d+)[\\/][^\\/]*(\d{2})([^\\/\d]*\.[^\\/.]+)</regexp>
</tvshowmatching>
</advancedsettings>
--- End code ---
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:
Ty for code & welcome to the wonderful forums ;) and baka itself (since ur acc's 1day old)
Navigation
[0] Message Index
Go to full version