[mythtv] Myth Protocol Command to List Programs
Ian Barton
lists at manor-farm.org
Sat Mar 15 12:08:57 UTC 2008
> Since the code to make the information available through XML is already
> available, it's quite likely to "win" if the devs decide to go with a
> single interface.
>
> You can play with the XML stuff using:
>
> wget
> 'http://localhost:6544/Myth/GetProgramGuide?StartTime=2008-03-15T12:00:00&EndTime=2008-03-15T14:00:00&NumOfChannels=1&StartChanId=1021&Details=0'
> -O listings.xml
>
> to get a "summary" version or
>
> wget
> 'http://localhost:6544/Myth/GetProgramGuide?StartTime=2008-03-15T20:00:00&EndTime=2008-03-15T23:00:00&NumOfChannels=1&StartChanId=1021&Details=1'
> -O listings-detail.xml
>
> to get all program details.
>
> Ian, if you're hoping to get it through the Python bindings, you may
> need to add bindings support for querying/parsing the XML data.
>
> See also contrib/development/MythXMLTest/ (I'm pretty sure in
> 0.21-fixes, it's just under the contrib directory) for more details on
> the XML interface. David Blain (and a few others) has put a /lot/ of
> good stuff in there that's not really being used, yet, though doing so
> would be a /very/ good thing. Much better than direct DB queries, at
> least. :)
>
Thanks, I already have some code that queries the xml interface, but
didn't realise that I could get the program data that way.
Ian.
More information about the mythtv-dev
mailing list