[mythtv] Help getting decent page chooser for teletext.

Christian Hoenig me at christianhoenig.de
Sun Jul 27 10:49:37 EDT 2003


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

Hi,

Martin Moeller wrote
> All right. I've done what I can, I need some help before the final patch
> to the teletext subsystem is ready...
>
> I now have a extremely bad implementation of reading from a file and
> storing (in a roundabout way) in vbipagenr.
[snip]
> * Check for $HOME/.mythtv/teletext in stead of /tmp/teletext.mythtv
> * Convert the input to the right hexvalue, i.e the file contains 399 and
> the vbipagenr ends up as 0x03990000. Right now I must calculate the
> decimal value of 0x0399 and place that in /tmp/teletext.mythtv.
> Horrible, but it beats recompiling all the time.
[snip]
> Who would have thought reading 3-4 characters from a file was so much
> work.... There must be a better way.

Why would you read from a file? Why don't you simply add a setting to the sql 
database and retrieve it with (ie)
	gContext->getSetting("VBIpageNr",399); 
?

Using the mysql command  you could simply change the value by typing
	update settings set data=NEW# where value=VBIpageNr, hostname=YOURHOST;

take care, have fun
/christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/I4QVmauZIX3ydQURAj4eAKCtLUnvkehSL0E2YtuAkvzV7gr6TACg5z6r
F1OP+gxvdCBpcJ+5bRu0rqA=
=ECyA
-----END PGP SIGNATURE-----




More information about the mythtv-dev mailing list