-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On July 9, 2003 11:15 pm, Aubin Paul wrote:

> > for dn in channels['display-name']:
> >     if len(dn.split()) == 1:
> >             channelnum = dn
> >     else:
> >             display_name = dn
> >
> > This works for tv_grab_na, but I'm not sure about the other grabbers,
> > yet.
>
> All I did was treat them as indexed elements in an array:
>
> i['display-name'][0]
>
> Does that make sense?

There's no guarantee of the order of those elements, especially in other 
grabbers when they start using this convention. Ed Avis said that people 
writing applications should use the one with the single number as the channel 
and the other one for a readable name. You *could* use .isdigit() and 
.isalnum() instead but there are some systems which have some channels with 
letters in them.

- -- 
James Oakley
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/DNdfKtn0F7+/lLMRAjVJAJ48J+Nq+x9UqTxuaxc6yIFY/IPzaACghT3O
gaFBfNbmQzhkSC19R8kYhww=
=HoUJ
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to