[mythtv-users] New Australian XMLTV grabber

Damon Searle djsearle at netspace.net.au
Mon Nov 8 11:11:07 UTC 2004



> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org [mailto:mythtv-users-
> bounces at mythtv.org] On Behalf Of Paul Andreassen
> Sent: Monday, 8 November 2004 5:54 PM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] New Australian XMLTV grabber
> 
> On Mon, 2004-11-08 at 15:34, Paul Andreassen wrote:
> > My next version should limit the retries.  But for now you can try
> > replacing "if ($count < 28)" with "if (0)" to shut it up.
> >
> > Could you send me a copy of this file its having trouble with.  After
> > changing the above line, the file should exist at that path.
> 
> Here's another version with some merges done.  Didn't put in foxtel
> channels because needs a rework to better accept multiple channels.
> 
> TODO
> - cleanup old directories and files (delete last 7 days)
> - 0:00 and 6:00 updates truncate (guide starts at 6:00)
>     (try mythfilldatabase --file 1 1 guide.xml)
> - read / write config  (could save alot of setup stuff in top of file)
> - two different region codes and foxtel channels
> 
> I'm at the point when it should be rewritten and my favorite language in
> python.  Is there any problem with using python?
> 
> Paul

If there is XMLTV for python there shouldn't be a problem, however I would
prefer to keep it in perl, as that's what most people are used to using for
XMLTV grabbers. I doubt I would have had so many patches and enhancements to
my original code if I had done it in python. Also if you want to write it
again in a new language you might as well think about breaking up the HTML
tables a bit better than the way I did it. The way I did it by breaking it
up into lines and picking the line number for the show attribute is pretty
nasty, and I only did that because I was too lazy to think of something
better at the time. Eg. if there is an extra bold tag or something in there
it can mean the description moves to a different line - which I think is the
problem people are having with the line 28 on some data.

- Damon



More information about the mythtv-users mailing list