![]() |
|
Extra REGEX for TV Show Episode matching - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111) +--- Thread: Extra REGEX for TV Show Episode matching (/showthread.php?tid=51614) |
Date based shows - erolosty - 2011-05-08 17:55 I swear there use to be a setting in the tvdb scraper for "show by air date" XXShow.2010.11.01.Zach.Galifianakis.HDTV.XviD-FQM.[VTV].avi I've tried: <regexp bydate="true">([0-9]{4})[\.-]([0-9]{2})[\.-]([0-9]{2})</regexp> <regexp byDate="true">([0-9]{4})[\.-]([0-9]{2})[\.-]([0-9]{2})</regexp> <regexp>([0-9]{4})[\.-]([0-9]{2})[\.-]([0-9]{2})</regexp> any suggestions or does this need to be done in the tvdb scraper? - David91 - 2011-05-13 18:20 Hello, please excuse my complete and utter beginner-ness in the subject of getting a script to properly scrape the information for a TV show but I've been struggeling with this for a while. I've tried version 2.1, 2.2 and 2.3, and they all return the same results really. My folder structure is layed out in the following way Code: TV ShowsThe files are all renamed in the above format (showname.SxxExx.Title) and are renamed by using the default settings of TheRenamer software. In XBMC when i have added my TV Shows folder as a source i sometimes get an empty show e.g. Code: Fawlty Towers - 0 unwatched episodesOr a show with only a single season catalogued e.g. Code: Futurama - 13 Unwatched EpisodesI have never had the scraper recognise more than 1 season of a TV show or even recognise a season that is greater than Season 1. I have Flattening set to off on XBMC and am not using any addition scripts or mods. Any help? or any ideas why this would be happening? EDIT: This bug also occurs when the structure is like the following: Code: TV ShowsAny help would be appreciated! - Jani - 2011-06-02 10:08 I came across with this: That.70s.Show.S08E01.REPACK.DVDRip.XviD-STUDIO\std-70s801r.rar\std-70s801r.avi. Quickly looking it doesn't match any of the regexps. It'd be nice if you added it. EDIT: I used (?i)[/\\]std-70s(\d)(\d{2})(\d{2})?(?:r|fix|dc|-repack|int|d)?\. - TechLife - 2011-09-03 06:20 All of my episodes are in one of the following three formats: /House/Season 1/01 - Pilot/VIDEO_TS.IFO /House/Season 1/01 - Pilot/VIDEO_TS/VIDEO_TS.IFO /House/Season 1/01 - Pilot.avi Currently I am using the following regex which works great: Season ([0-9]+)[\\/]([0-9]+)[^\\/]*[\\/]VIDEO_TS[\\/]VIDEO_TS.IFO Season ([0-9]+)[\\/]([0-9]+)[^\\/]*[\\/]VIDEO_TS.IFO Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]* I do have some episodes that are 2 parts in 1 in one of those three formats. For example: /Bones/Season 4/01-02 - Whatever Episode/VIDEO_TS.IFO /Bones/Season 4/01-02 - Whatever Episode/VIDEO_TS/VIDEO_TS.IFO /Bones/Season 4/01-02 - Whatever Episode.avi I would like to add strings in the <tvmultipartmatching> section so that they are recognized properly. I am regex illiterate. Could someone please help me in determining how that section of my advancedsettings.xml shoud read? Thanks in advance!! - jsimmons - 2011-09-04 18:39 If anyone wants to chase their own regex around, you can use an online regex tester. I use this one: http://regexpal.com/ - xexe - 2011-09-05 11:13 Jani Wrote:I came across with this: That.70s.Show.S08E01.REPACK.DVDRip.XviD-STUDIO\std-70s801r.rar\std-70s801r.avi. Quickly looking it doesn't match any of the regexps. It'd be nice if you added it. Sorry that is too specific to be added. Essentially its catering for a rubbish file name edge case - xexe - 2011-09-05 11:25 V2.4 - 05/09/2011 http://pastebin.com/UPPrk7VU Added more movie stacking REGEX. Read the WARNING. Dont run if you have a one pile movie pile. Note there are some weird movie stacking fails even though the REGEX is correct. Will debug with Eden later. Updated DIRFIX handling based on a bug posted by SoWErA. Cheers Lastly this is the last release that I will be testing with Dharma since I am moving to Eden. Please report bugs. I havent been doing much with this recently since for me at least it has an accurate hit rate well above 99.9%. Obviously YMMV with your own collection and naming. I am moving to Eden soon for easy central thumbnail support. As soon as I do that I wont be supporting Dharma anymore so if in doubt dont move past 2.3/4 if you are on Dharma. (Unless some posts some horrible bug i need to fix) Have fun Update: I am now on Eden so thats the only version I can support. Catching "Part.1" and "Part1" for episode - Gazer75 - 2011-09-30 08:23 Hi, I am new here and been trying to figure out how to use these expressions. So far I haven't gotten anywhere. Really confused... What I want to do is catch the following for episode number: \Name of Series\Name.Of.series.Part.1.*\rar files with avi \Name of Series\Name.Of.Series.Part1.*\rar files with avi * being anything after that. The bold part is the key here. Any way this can be done? I am completely lost. This is a mini series so no season folder used. Thank you Edit: Tried adding the following regex, but didnt help... Code: (?i).*?(part|part\W)(\d{1,2})([^/\\]*)- Benwolf7 - 2011-09-30 20:34 Hi, I've been trying to get this to work for my TV shows for weeks now and I'm at the end of my teather. I'm a bit of a rookie to all this so apologies if I'm wasting everyones time... My naming format is eg: TV Shows/Battlestar Galactica/Season 2/01 - Scattered.avi I've tried copying the exact advancedsettings.xml data as in the latest xexe update along with what seems like millions of other regexs off various threads etc. It is currently the same as the lastest xexe pastebin post. I have attached my debug log and hopefully someone can give me some help or advise before I give up and start renaming all 2tb of tv shows! (please bare in mind that I'm after a regex to match the naming format example above, and that a small minority of shows in my debug log are differently named eg black books, alan partridge etc - I am going to change these to the above naming format but having got around to it yet). At the moment the current settings only pick up spin city and that mitchell and webb look. Here is the debug log http://pastebin.com/bE7y4Jnv - NB:I had to remove some of the TV shows because the file was too big for pastebin. Thanks in advance Benwolf7 - dumpydooby - 2011-11-01 19:12 Added this to TV show prepend. Code: <regexp>(?i)[/\\]wind-spartacus\.720p\.part(\d)\.</regexp> <!-- wind-spartacus.720p.part2.mkv -->It was for episodes of Spartacus: Gods of the Arena. I was having trouble with that. I had trouble with the show too, but I just entered that manually (typed "Spartacus" and let XBMC give me a list of options). |