On Fri, 14 Jun 2002 11:12:59 -0600
Jerry Veldhuis <jerry@xxxxxxxxxxx> wrote:
> In NA, you get a list of channels the provider provides. The list is
> rarely over 200. Even then the descriptions are short (channel # and
> call letters), so any simple multi-pick window could be used. I'd
> suggest 'unselect all' and 'select all' buttons someplace for convience
> though.
Sounds perfect.
> > However, if you really do want that feature, perhaps we should add a
> > - --list-channels option to the grabbers, so you can find out about
> > channels without waiting for the listings themselves to download.
> >
> I've added --list-providers and --list-channels to tv_grab_na this
> morning. The --list-channels still requires a pretty big query of
> the zap2it site (ie ~5-10 seconds for the page), but still it
> does produce the list you want. The output is compatible with what
> you'd need to fill in the config file.
Yes, this is exactly the kind of thing I was thinking of - fast work!
So, to be clear, would FreeGuide need to use --list-providers to get the
providers, then ask the user what provider, and then use --list-channels to get
the channels and make a config file? Any ideas on how to make this general so
I don't have to write specific code for each grabber?
Can I still use --output on both these options?
How about giving default values for the other options in the output too?
(Obviously then the name --list-channels becomes wrong - maybe --configure
--non-interactive as I said in the other email?)
> Its hard not to get around having to create your own config file.
> Hopefully we can minimize the format changes and the chances or
> things breaking.
The above would solve this though wouldn't it?
> This isn't as simple as chaning the XMLTV::Ask module to put up
> a popup and ask a question. We'd need to have entry points to
> provide error messages w.r.t. invalid answers etc. Certainly
> I don't want yet another requirement (for perl::Tk) to run
> tv_grab_na, it would need to be completely optional.
Thinking about this, I don't think it's right. I don't want my program to
interact with the grabbers except using commandline arguments. The reason for
this is that I want the user to be able to plug in any other grabber that gets
written without needing major rewrites of my code or requiring loads of
specific things from the grabber writer.
In summary, the ability to dump all the possible channels from tv_grab_uk would
solve my problem (and I can submit a patch to do this when I get a chance), and
the providers problem in tv_grab_na is causing me headaches at the moment
because I can't see how to get round it without writing specific code in
FreeGuide.
I'll think on...
Andy
Andy
|