[mythtv] Help with mythprotocol

Isaac Richards ijr at case.edu
Tue Nov 15 19:13:17 EST 2005


On Tuesday 15 November 2005 06:44 pm, Dwight Hubbard wrote:
> I've been playing with the python script that was put forward a while back
> to try and implement a simple front end in python.
>
> I had to do some signifcant tweeking to get things to work due to changes
> in the protocol version.  I have some basic stuff working but of course
> I am going to have to re-tweak everything for the new protocol version
> if/when I choose to go to SVN or there is a new version released.
>
> I was curious why the protocol doesn't use an extensible and easily
> parseable format for passing the data between the client and the server?
>
> For example, if I request the program info from the backend.  I will
> receive a response that requires me to know what fields the program info
> response has, what order they are in, and how many fields there are
> because all the programs information are returned back to back.  If the
> information was returned in a format such  as XML, I could ignore new
> fields that I do not understand and continue to work even if additional
> fields where added in a new backend version.
>
> Am I missing something obvious?

Yeah, the fact that simply ignoring new fields will most often cause things to 
fail just as badly as the current protocol.

Isaac


More information about the mythtv-dev mailing list