Argus-TV Guide Enhancer

Post Reply
sjeffrey
Posts: 93
Joined: Wed May 06, 2009 10:06 pm

Re: Argus-TV Guide Enhancer

Post by sjeffrey » Sun Jan 06, 2013 12:40 am

@facted,
that's why I asked what source you were using for your Guide. SD had nothing in episode numbers for Shark Tank.

Anways, I'm going to try XmlTV now. LOL, I couldnt figure out how to use it and always reverted back to SD, I was looking a TVGuideImporter. I never realized it was a simple as putting the file in the Argus TV folder. :lol:

I'll try my code against XmlTV data later tonight and let you know.

@MicF, same here, it's been like that for a few days.

sjeffrey
Posts: 93
Joined: Wed May 06, 2009 10:06 pm

Re: Argus-TV Guide Enhancer

Post by sjeffrey » Sun Jan 06, 2013 3:22 am

New version 2.0.2 posted!

Well looks like I broke a big rule, never make a release without testing it :oops:
Looks like accidentally switched tvdb language from default to universal which broke the API lookups. It wasn't obvious because the stack traced said something about API key which had me wonder if my key was banned. Older version running with Fiddler logging showed me what was going on.

BTW, I forgot to mention to make sure the new install's config file uses match method NumericSeasonEpisodeMatchMethod which replaces the ThreeDigit one

Code: Select all

<add name="GuideEnricher.EpisodeMatchMethods.NumericSeasonEpisodeMatchMethod"/>
@facted,
I got Shark Tank to work finally. It took a while to get the right combination because the first episodes didn't have a subtitle or an episode number. Then the next ones were for episode 414 which is not on TVDB yet...
So finally it turns out there was a pretty major bug where if an episode lookup failed it would remove all episodes with same subtitle. For Shark Thank, they have no subtitle so it would remove ALL of them. I patched the code so that it will only do that for episodes that actually have subtitles. I'll need to improve this later though.

Hope this version works better now,
Steph

sjeffrey
Posts: 93
Joined: Wed May 06, 2009 10:06 pm

Re: Argus-TV Guide Enhancer

Post by sjeffrey » Mon Jan 07, 2013 2:27 am

I was looking at adding the history to the enrich code and I don't think this will be possible. At least not reliably. The problem is that it seems that once a program is recorded it only keeps minimal data on the program (Title and Episode). This is fine for guide programs that has the info but there wouldn't be a reliable way to identify previous episodes.

I don't have any recordings with XmlTV yet. Can someone check if shows that put episode numbers in episode field contain season and episode numbers like season 3 episode 2 = 302?
If it does then maybe we could just use this format when episode is a 3 or 4 digit value.

facted
Posts: 44
Joined: Fri Aug 17, 2012 11:30 pm

Re: Argus-TV Guide Enhancer

Post by facted » Mon Jan 07, 2013 3:52 am

I still have an episode of SharkTank that cannot be found by guide Enhancer. Not sure why, but perhaps it has to do with the xmltv file directly?

One question though: Why does guide enhancer sometimes use the call "GuideEnricher.EpisodeMatchMethods.MatchMethodBase" and sometimes GuideEnricher.EpisodeMatchMethods.EpisodeTitleMatchMethod. Why is matchmethodbase called for most shows, but for some reason, matchmethodbase is not called for sharktank (it just directly calls episodetitlematch, nopunctuation, etc...)

Code: Select all

2013-01-06 18:17:20 [59] DEBUG GuideEnricher.Enricher - Beginning enrichment of episodes for series Scandal
2013-01-06 18:17:20 [59] DEBUG GuideEnricher.tvdb.TvdbLibAccess - Starting lookup for Scandal - One for the Dog
2013-01-06 18:17:20 [59] DEBUG GuideEnricher.EpisodeMatchMethods.MatchMethodBase - [Episode Title] Could not match Scandal - One for the Dog
2013-01-06 18:17:20 [59] DEBUG GuideEnricher.EpisodeMatchMethods.MatchMethodBase - [No Punctuation] Could not match Scandal - One for the Dog
2013-01-06 18:17:20 [59] DEBUG GuideEnricher.EpisodeMatchMethods.MatchMethodBase - [Remove common words] Could not match Scandal - One for the Dog
2013-01-06 18:17:20 [59] DEBUG GuideEnricher.Enricher - The first run for the series Scandal had unmatched episodes.  Checking for online updates.
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.tvdb.TvdbLibAccess - SD-TvDb: Search for Shark Tank return 1 results
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.tvdb.TvdbLibAccess - SD-TvDb: series: Shark Tank id: 100981
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.Enricher - Beginning enrichment of episodes for series Shark Tank
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.tvdb.TvdbLibAccess - Starting lookup for Shark Tank - 
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.EpisodeMatchMethods.EpisodeTitleMatchMethod - [Episode Title] Shark Tank - 01/11 09:00 PM does not have a subtitle
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.EpisodeMatchMethods.NoPunctuationMatchMethod - [No Punctuation] Shark Tank - 01/11 09:00 PM does not have a subtitle
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.EpisodeMatchMethods.RemoveCommonWordsMatchMethod - [Remove common words] Shark Tank - 01/11 09:00 PM does not have a subtitle
2013-01-06 18:17:23 [59] DEBUG GuideEnricher.Enricher - The first run for the series Shark Tank had unmatched episodes.  Checking for online updates.

PD
Posts: 122
Joined: Fri May 30, 2008 12:33 pm

Re: Argus-TV Guide Enhancer

Post by PD » Wed Jan 09, 2013 1:38 am

Hi sjeffrey

Thought I would let you know, your newe 2.0.2 (second release) works perfectly, with using file name of show title with episode name to identify series\episode.

Back to being reliable :D

Many thanks
Ray
Paranoid Delusion
Team-MediaPortal

sjeffrey
Posts: 93
Joined: Wed May 06, 2009 10:06 pm

Re: Argus-TV Guide Enhancer

Post by sjeffrey » Wed Jan 09, 2013 3:41 am

Just posted a long message then got a SQL error on the forum...
So short version this time.

@PD, That's great, glad to hear it!

@facted, the base class is just the class that all match method are based off of. You might not see some of the methods being tried because I removed the log message that said it would not be used for specific episode, like original air date method for episodes with no air dates.

toricred
Posts: 91
Joined: Fri Nov 25, 2011 2:39 am

Re: Argus-TV Guide Enhancer

Post by toricred » Sun Feb 03, 2013 2:33 am

TVDB seems to be having a lot of problems with stability lately and that is causing a lot of errors with Guide Enhancer. Is there a way another site could be used or maybe a way set up to wait for a bit and try again?

sjeffrey
Posts: 93
Joined: Wed May 06, 2009 10:06 pm

Re: Argus-TV Guide Enhancer

Post by sjeffrey » Mon Feb 04, 2013 3:52 am

toricred wrote:TVDB seems to be having a lot of problems with stability lately and that is causing a lot of errors with Guide Enhancer. Is there a way another site could be used or maybe a way set up to wait for a bit and try again?
I hadn't noticed they still had problems. I don't watch much tv anymore so didn't noticed if guide entries were enriched or not anymore as well.

I hate to say it but I won't have any time right now to make changes to the code.
One thing you could do is change the sleepTimeInHours setting in the config file to something like 1 to force to a refresh every hour. At least it will increase your chances of getting successful lookups. Of course if THETVDB issues are because of load then this will only make the problem worse for them :roll:

toricred
Posts: 91
Joined: Fri Nov 25, 2011 2:39 am

Re: Argus-TV Guide Enhancer

Post by toricred » Mon Mar 18, 2013 12:03 am

This doesn't seem to be working with the new beta version of Argus TV. Is there by chance a new version?

hairlesshobo
Posts: 22
Joined: Sun Apr 01, 2012 6:00 pm
Location: Jacksonville, FL, USA
Contact:

Re: Argus-TV Guide Enhancer

Post by hairlesshobo » Sun Mar 24, 2013 10:06 pm

Anybody have any ideas of how to fix this issue:

Code: Select all

2013-03-24 15:41:58 [17] DEBUG GuideEnricher.Enricher - About to commit enriched guide data. 171 entries were enriched
2013-03-24 15:41:58 [17] ERROR GuideEnricher.Service - Error enriching
System.NullReferenceException: Object reference not set to an instance of an object.
   at GuideEnricher.Enricher.UpdateFTRGuideData()
   at GuideEnricher.Enricher.EnrichUpcomingPrograms()
   at GuideEnricher.Service.Enrich(Object state, ElapsedEventArgs eventArgs)
2013-03-24 15:42:12 [3] DEBUG GuideEnricher.Service - Trying to connect to Argus TV
2013-03-24 15:42:12 [3] FATAL GuideEnricher.Service - ARGUS TV on server is more recent, upgrade client
It appears that with the latest beta version of ArgusTV, GE will go through the motions, it finds the epidodes and gets all the data from the internet, but then fails to actually commit it to the ArgusTV database.

Any pointers would be very helpful.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests