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)
- outleradam - 2009-11-29 21:33
hey I could use some help matching my recording methods with your regex. I just switched over to linux and am trying to get MYTH working with XBMC's library. I need a file naming system to match the REGEX. I have the option of renaming files as a job by accessing the database after they are recorded. These are my options.
Is there anything you see there that would match a regex?
- xexe - 2009-11-29 21:35
Give me a day guys Im sick as a dog
No TV Shows Appearing - jrubenol - 2009-11-29 23:34
First off, hope you get better XEXE
Second, I apologize for not providing all the information, I can give a lot more now, first off, I upgraded to the latest SVN, and my log can be found here:
For a bit more of how confusing this all is for me, and why I suspect something else is wrong. My setup:
/home/user/Videos/TVSHOWS/SHOWTITLE/DVD Backups in Folders
(no VIDEO_TS or AUDIO_TS Folders, all VOB's and other stuff is directly in DVD Backup folder).
Full example of my setup
I'm using the code directly from the wiki under TV Shows in DVD Folder
I have a slight alteration just because I don't have the video_ts folder, so I removed that aspect of the code and also my stuff is all caps so I did the appropriate changes.
So from the first entry it looks like it should work....I'm so confused.
Also here is another point that I'm unsure of, I tried just making an AVI of one episode of Battlestar and stuck it inside the Battlestar folder. I titled it:
foo.401.avi (from my understanding this format should by default be viewed as Season 4 Episode 1), nothing shows up in XBMC, I see my show titles but there are 0 episodes in everything.
Thanks for the help in advanced
- xexe - 2009-11-30 13:23
tomkiley Wrote:Here is the debug log: http://pastebin.com/f57d6e804
The bext version should match your format.
outleradam Wrote:hey I could use some help matching my recording methods with your regex. I just switched over to linux and am trying to get MYTH working with XBMC's library. I need a file naming system to match the REGEX. I have the option of renaming files as a job by accessing the database after they are recorded. These are my options.
I cant see anything in http://www.xbmc.org/wiki/?title=AdvancedSettings.xml thats gives me the abilty to do REGEX date matches so I see no way of doing anything date related.
jrubenol Wrote:First off, hope you get better XEXE
You can see you have a match
found episode based match /home/joel/videos/my videos/tv2/battlestar galactica/foo.401.avi (s4e1) [[\._ \-\\/]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)(??[\\/]video_ts.ifo)?]
It also shows why this is not working
CVideoInfoScanner::OnProcessSeriesFolder: Asked to lookup episode /home/joel/Videos/My Videos/TV2/Battlestar Galactica/[S1]_[E1E2E3E4]/VIDEO_TS.IFO online, but we have no episode guide. Check your tvshow.nfo and make sure the <episodeguide> tag is in place.
TBH i think multi ep isos are a bit silly and as such I have no experience of them and no way to do any tests. Its personal opinion but can you not rethink your backup strategy to something more elegant? Regardless your scheme will be no use to almost anyone except yourself and as such I wont be including it in this set
- xexe - 2009-11-30 13:31
See file for some more details of whats changed.
See it here: http://pastebin.com/f74eb50d9
I am going to start ignoring requests for support that dont come with a debug log that show both the "Failed to Enumerate" log entrys and my attached advanced settings (i.e. i should see my extra REGEX being loaded in the log).
If I dont see this I am going to ignore the support request and concentrate on helping those users that show commitment to helping themselves. There have been a few requests for help from users that clearly havent even tried my regex and I have no interest in that.
Remember this is thread for extra regex that will help lots of users. Not xe's REGEX help line
- jrubenol - 2009-11-30 19:41
Thanks for the help, I'm going to check into it and see what I come up with. I think that my method of backup is actually fairly common (DVD Shrink is probably the most common backup tool available). I have tried per episode and I find two things:
1. Backing up to avi diminishes quality
2. It's a pain in the...to figure out where one episode begins and what ends because they don't match .vob's to episode numbers, this turns it into an almost guessing game -- someone has told me that there is software available that will do it for me, but I'm happy with k9copy so, I think the quality of the backup is great and I also like the dvd menus and what not when I want to play something using VLC.
Forgot to mention also that they aren't .iso's, they are just folders, DVDShrink and DVD Decrypter, K9Copy, etc... just basically move the vob's to folders and somehow compress them down to about 4 gigs (or less). Between those three programs I think that there are a ton of people who have this type of setup
Lastly, I have to make an nfo file for each show? Is this normal? I'm still not getting why my foo.401.avi didn't get detected, unless it is necessary to do a .nfo file in each location. Thanks again, really appreciate the help (I have spent hours trying to solve this so I'm definitely trying to pull my own weight )
- xexe - 2009-11-30 20:09
foo.401 did get detected. if your not seeing it in your library thats a different story.
- outleradam - 2009-11-30 20:25
xexe Wrote:I cant see anything in http://www.xbmc.org/wiki/?title=AdvancedSettings.xml thats gives me the abilty to do REGEX date matches so I see no way of doing anything date related.ok, thank you. I am now starting a project to reference TVDB as a mythtv job which will first access the mythtvdb, then get the showname and the episodename, then access TVDB, get the showID from the showname [url=http://www.thetvdb.com/api/GetSeries.php?seriesname="family%20guy"]http://www.thetvdb.com/api/GetSeries.php?seriesname="family%20guy"[/url] <<family guy, grab the XML for the showID which contains all tvdb information about the show including season and episode http://www.thetvdb.com/api/3B81A89C73E4EE95/series/75978/all/en.xml, then rename the show to showname - SxxExx (episodename)
- xexe - 2009-11-30 22:04
XBMC can lookup by air date though its just not something you can tweak and I have no experience of using it.
Realistically though its problematic as it assumes that your recording is from the first airing on the original network (the field tvdb stores)
- jrubenol - 2009-11-30 23:01
Back for a bit more help, I know that this method isn't being supported in the forum but so far what xexe has told me has greatly improved what I've been able to accomplish.
My results thus far:
The number of episodes are being detected, they show up in XBMC but they all show up as the same title (title of the show) and they all link to the DVD root menu, not the episodes themselves.
To accomplish this I have the following:
then inside of the disc folder for a show (let's say S2E1E2E3E4 of Big Bang Theory) I have this VIDEO_TS.nfo
Quote:<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
The episodeurlguide there is correct as it links me to a zip that contains all the names of the episodes. Here is my log:
There are definitely others interested in this as I have gotten a couple responses in another forum from people awaiting if I'm able to make progress....xexe I really appreciate any advice/help/assistance you can give, I know your time is valuable