Extra REGEX for TV Show Episode matching

  Thread Rating:
  • 13 Votes - 4.54 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
outleradam Offline
Member+
Posts: 1,722
Joined: Sep 2009
Reputation: 20
Location: Louisiana
Post: #41
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.

Code:
\%T   = Title (show name)
    \%S   = Subtitle (episode name)
    \%R   = Description
    \%C   = Category
    \%U   = RecGroup
    \%hn  = Hostname of the machine where the file resides
    \%c   = Channel:  MythTV chanid
    \%cn  = Channel:  channum
    \%cc  = Channel:  callsign
    \%cN  = Channel:  channel name
    \%oy  = Original Airdate:  year, 2 digits
    \%oY  = Original Airdate:  year, 4 digits
    \%on  = Original Airdate:  month
    \%om  = Original Airdate:  month, leading zero
    \%oj  = Original Airdate:  day of month
    \%od  = Original Airdate:  day of month, leading zero
    \%%   = a literal % character

Is there anything you see there that would match a regex?

Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[Image: newsig-1.png]
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
(This post was last modified: 2009-11-29 21:36 by outleradam.)
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #42
Give me a day guys Im sick as a dog


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
jrubenol Offline
Senior Member
Posts: 106
Joined: Nov 2009
Reputation: 0
Post: #43
First off, hope you get better XEXE Smile

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:

http://pastebin.com/m4280b4a8

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

/home/user/Videos/TVSHOWS/Battlestar Galactica/[S1]_[E1E2E3E4]

I'm using the code directly from the wiki under TV Shows in DVD Folder
http://wiki.xbmc.org/?title=TV_Shows_%28...Library%29

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 Smile
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #44
tomkiley Wrote:Here is the debug log: http://pastebin.com/f57d6e804

It says could not enumerate file in front of all the filenames around line 550. It does appear to get the show name correct though.

Thanks again.

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.

...
Is there anything you see there that would match a regex?

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 Smile

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:

http://pastebin.com/m4280b4a8

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

/home/user/Videos/TVSHOWS/Battlestar Galactica/[S1]_[E1E2E3E4]

I'm using the code directly from the wiki under TV Shows in DVD Folder
http://wiki.xbmc.org/?title=TV_Shows_%28...Library%29

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 Smile

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])([\._ \-][^\\/]*)(?Sad?Smile[\\/]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 Smile


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
(This post was last modified: 2009-11-30 13:31 by xexe.)
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #45
Version 1.4

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 Smile


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
jrubenol Offline
Senior Member
Posts: 106
Joined: Nov 2009
Reputation: 0
Post: #46
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 Wink )
(This post was last modified: 2009-11-30 20:01 by jrubenol.)
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #47
foo.401 did get detected. if your not seeing it in your library thats a different story.


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
outleradam Offline
Member+
Posts: 1,722
Joined: Sep 2009
Reputation: 20
Location: Louisiana
Post: #48
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/3B81A89C73E4E...all/en.xml, then rename the show to showname - SxxExx (episodename)

Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[Image: newsig-1.png]
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
(This post was last modified: 2009-11-30 20:33 by outleradam.)
find quote
xexe Offline
Fan
Posts: 711
Joined: Sep 2008
Reputation: 1
Post: #49
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)


Having problems getting your TV shows recognized?

Try my extra TV show matching REGEX here
find quote
jrubenol Offline
Senior Member
Posts: 106
Joined: Nov 2009
Reputation: 0
Post: #50
Hi All,

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:
advancedsettings.xml
Quote:
Quote:<advancedsettings>

<tvshowmatching append="no">
<regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)(?Sad?:[\\/]VIDEO_TS)[\\/]VIDEO_TS.IFO)?</regexp>
</tvshowmatching>

</advancedsettings>

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" ?>
<tvshow>
<title>The Big Bang Theory</title>
<episodeguideurl>http://www.thetvdb.com/api/1D62F2F90030C444/series/80379/all/en.zip</episodeguideurl>
<rating>0.000000</rating>
<year>0</year>
<top250>0</top250>
<season>-1</season>
<episode>0</episode>
<displayseason>-1</displayseason>
<displayepisode>-1</displayepisode>
<votes></votes>
<outline></outline>
<plot></plot>
<tagline></tagline>
<runtime></runtime>
<mpaa></mpaa>
<playcount>0</playcount>
<lastplayed></lastplayed>
<id></id>
</tvshow>

The episodeurlguide there is correct as it links me to a zip that contains all the names of the episodes. Here is my log:

http://pastebin.com/m6999d996


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
find quote
Post Reply