Extra REGEX for TV Show Episode matching - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Support (/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: Extra REGEX for TV Show Episode matching (/showthread.php?tid=51614)
RE: Extra REGEX for TV Show Episode matching - coreano - 2015-12-08 01:21
please help Kodi works on roku 3
Regex fails to parse episodes - dragonkeyper - 2015-12-23 08:51
Hello I'm trying to move from media portal to Kodi for various reasons, but at the moment i have a few minor obstacles i need to over come. Can anyone explain why the following advancedsettings.xml file is not working on the following path/naming convention.
Z:\Media\TV Shows\Alias Smith and Jones\Season 01\1.01 - Alias Smith and Jones.avi
RE: Extra REGEX for TV Show Episode matching - dragonkeyper - 2015-12-24 06:10
(2015-12-23 08:51)dragonkeyper Wrote: Hello I'm trying to move from media portal to Kodi for various reasons, but at the moment i have a few minor obstacles i need to over come. Can anyone explain why the following advancedsettings.xml file is not working on the following path/naming convention.
Never mind I got it.
RE: Extra REGEX for TV Show Episode matching - el_Salmon - 2015-12-30 19:57
I want to parse, for example, this tv shows file:
I have added these lines to my ~/.kodi/userdata/advancedsettings.xml file:
RE: Extra REGEX for TV Show Episode matching - crazygambit - 2016-02-11 07:00
I checked out the anime regex on this thread, which also appears in the wiki, but it's based on seasons rather than absolute ordering. Since I really didn't want to rename my collection and since I couldn't find any decent regex for absolute number I decided to learn how to do it myself. After banging my head against the wall for 2 days, I finally figured it out. I just have to say the wiki is woefully inadequate to tackle this issue, which a lot of people have been having for years. I guess most have given up and renamed their files. If you haven't yet, then this might be of use. It catches 100% of my episodes, even multi episodes without ever renaming anything. Even difficult to match shows like Macross 7 or Eyeshield 21 are no issue. Specials need to be numbered according to the TVDB if you're using that scraper, though you don't need to add S00. That's more of a scraper than a regex issue. I still have no clue how Anidb deals with specials, so I can't help you there. So without further ado here it is:
I wanted to post it here, so people interested would see it, but I don't want to hijack this thread. I'll make a new one to answer any questions you guys might have.
RE: Extra REGEX for TV Show Episode matching - rexo - 2016-03-26 23:41
Hello after some debugging I found way to scan TV Shows all placed in one folder.
With this there is no need to move each show to separate folders:
I added this second regex, first and last are copied from Kodi source code.
This second one removes season and episode numbers from name while sending request to info provider.
RE: Extra REGEX for TV Show Episode matching - dregge8 - 2016-04-18 10:36
(2016-03-26 23:41)rexo Wrote: Hello after some debugging I found way to scan TV Shows all placed in one folder.
I added these settings to my advanced xml with no luck. Currently running Kodi 16.1, restarted the system as well. When it updates the library it seem like it is finding each individual show name, however nothing appears in my TV Show library.
RE: Extra REGEX for TV Show Episode matching - dregge8 - 2016-04-18 16:50
The tv shows appear in the mysql DB but not the Kodi Library?
RE: Extra REGEX for TV Show Episode matching - Jessica136 - 2016-05-17 13:39
I am a big fan of Kodi..
RE: Extra REGEX for TV Show Episode matching - MrBass - 2016-07-23 23:46
Hopefully this threads still alive and one of you kind folks will be able to help me with my problem.
My TV Shows are all stored in the following format,
Show Name/Season/Episode Number - Title (Release Date).extn
E.g. volume1/Media/TV Shows/Dead Of Summer/Season 1/01 - Patience (28-Jun-2016).mkv
I've tried the following in my advancedsettings.xml,
Unfortunately that gets interpreted as s0e1 - which appears to be the trend with all my shows. So whilst, the show is getting scraped, the episodes are all showing as the same non-existing season 0 episode 1.
Is it possible to have a regexp setting for my format or am I going to have to painstakingly rename all my files.
Out of interest, what string is Kodi searching for? If I knew that then I might be able to work something out myself.
Any help really appreciated.
RE: Extra REGEX for TV Show Episode matching - scudlee - 2016-07-24 17:19
Try removing the brackets around the word season.
Since that makes it technically the first capturing group of your regexp, which should be for the season number, I'm guessing that because it's not actually a number it's being interpreted as a 0 (whence "season 0").
The second group, which should be for the episode number, is capturing the season number instead (whence "episode 1", at least for every season 1 episode).
You don't need the brackets just to surround a word.
If you do for some reason need to group a part of the regexp (e.g. because that part is optional), you can make it non-capturing by adding a ?: after the opening bracket, e.g. (?:season).
RE: Extra REGEX for TV Show Episode matching - hema2311 - 2016-08-28 16:50
RE: Extra REGEX for TV Show Episode matching - SpiderBoxLive - 2016-10-22 02:37
Not getting it.
RE: Extra REGEX for TV Show Episode matching - conan76 - 2016-11-03 20:34
Hi from France (and excuse me for my bad english...)
simple explanation :
I'm using Kodi 17 with a mysql Database.
i've got tv series named "Scorpion", saison "2"
i've got this directory architecture : "\\DS1813\Series\Scorpion\S02"
Files are named like that : "Scorpion - 02x05 - Les supers fun guys.mkv"
Episode 16 of this serie is in 2 parts (2x 45min)
After many search how to define a episode in 2 parts for kodi, i found in kodi wiki the "Split-episode" explanation and i name my files like this :
Scorpion - 02x06.1 - La tour de cristal infernale
Scorpion - 02x06.2 - La tour de cristal infernale
but kodi list 2 files in media library, scrapper define is "thetvdb"
where is the problem ?
Thanks for your help.
RE: Extra REGEX for TV Show Episode matching - MasterCATZ - 2016-11-13 11:36
my database is in shambles
thankfully I can still export my anime from kodi gui as a backup , but the movies have all disappeared ...
*edit* damn now anime are gone also
some of its stored in my profile database folder and some of its in the sql database
last time i modiefied my advancedsettings.xml was using Version: V2.4 template ...
and the settings seem to be skipped now with kodi 17