PDA

View Full Version : TV Scraper Help


Vankwish
2008-09-09, 12:08
Hi, i have been using all the tips and bits and bobs on the wiki to try and get the tv scraper working using regex on my directory structure to no avail. Before i give up and rename thousands of files i thought i'd pester you guys here for help ... ... ...

Basically i am using an infrant readynas nv and would like to keep the ability to use their upnp media streaming for other devices on my lan and still be able to make sense of different filenames, whilst still allowing XBMC to scrape TV show info.

My structure is as follows.

Media/TV/TVShow Name/Season X/Episode XX - EpisodeTitle.avi

I also put specials in season 0 as per the wiki suggestion.

My double episodes are named as follows.

Media/TV/TVShow Name/Season X/Episode XX & XX - Title1 & Title 2.avi

I only have one real exception to the structure and that is a "Documentaries" dir inside //Media/TV/ and inside here i have folders containing series of documentaries (e.g. planet earth) and also folders containing one off episode documentaries.

I wouldnt mind just re-ripping the double episodes from my dvd collection as there arent really that many, i`m also open to suggestions of renaming or relocating as few files as possible.

I would really appreciate any help, thank you in advance.

Vankwish
2008-09-10, 11:58
Ok i have a little bit of progress, using the the following regex that i put in advancedsettings.xml.

<tvshowmatching>
<regexp>Season ([0-9]+)[\\/]Episode ([0-9]+)[^\\/]*</regexp>
<twopart>
<regexp>season ([0-9]+)[\\/]episode ([0-9]+) \& ([0-9]+)[^\\/]*</regexp>
</twopart>
<tvshowmatching>

Its working on a few episode but not on all the doubles and i still havent a solution for the odd documentaries folder, so im still looking for a bit of advice?

Vankwish
2008-09-11, 23:29
OK my head is hurting now, and i have cried a little bit :sad: but i am getting there, very slowly (i think it would be easier to learn sandscript that regex!).

OK my further revised regex is as follows,

Single Episodes:
\\Media\Videos\TV\ShowName\Season XX\Episode XX - Episode Title.avi
Double Episodes:
\\Media\Videos\TV\ShowName\Season XX\Episode XX & XX - EpisodeTitle1 & Episode Title2.avi

<tvshowmatching>
<regexp>Season[\._ ]([0-9]+)[\\/]Episode[\._ ]([0-9]+)[^\\/]*</regexp>
<twopart>
<regexp>Season[\._ ]([0-9]+)[\\/]Episode[\._ ]([0-9]+) [\&] ([0-9]+)[^\\/]*</regexp>
</twopart>
</tvshowmatching>

This solution seems to be a bit more robust, (even though i havent a clue how i devised it!) i'm still having a few problems with certain series and double episodes but i think that may be fixed tonight with an update to T3CH's latest build.

I have experimented with media managers for the documentaries section and storing the info locally, this seems to be an elegant solution as the documentaries section is small, also it may be usefull for my UFC collection too unless someone has any better suggestions.

I would be VERY gratefull if someone could have a check over and throw their 2c's in before i upgrade XBMC and start another 14hr scrape :eek:
Thank you