[mythtv-commits] mythtv/master commit: 5bf377b55 by Robert McNamara (rmcnamara)
noreply at mythtv.org
Sun Apr 10 06:37:09 UTC 2011
Author: Robert McNamara <rmcnamara at mythtv.org>
Change Date: 2011-04-09T23:31:34-07:00
Push Date: 2011/04/09 23:37:06 -0700
New Revision: 5bf377b55112df1357cfbbef4435414f21a6e630
API: Add the ability to create and update channels.
Obviously, these are POST only. Still, for creation of basic channels (not creation of multiplexes, though creation of channels on existing multiplexes would work) this does the trick.
http://BackendServerIP:6544/Channel/CreateDBChannel?MplexID=950&SourceID=3&ChannelID=9743&CallSign=CHNL&ChannelName=My Great Channel&ChannelNumber=9743&ServiceID=3&ATSCMajorChannel=120&ATSCMinorChannel=0&UseEIT=1&visible=1&FrequencyID=9743&Icon=path-to-icon.png&Format=Default&XMLTVID=12345&DefaultAuthority=
To update a channel, one would do the same as above, but substitute UpdateDBChannel as the URL. See the wsdl for the Channel service for all the parameters and their types.
To be used soon for the HTML setup channel editor.
NB, this API should really not be abused-- you shouldn't use it to add/update channels unless you really, really know what you are doing. We're angling to make adding and editing of channels insanely easy with the backend webserver interface, for which we need this API, but be a sport and don't break your setup. ;)
More information about the mythtv-commits