[mythtv] [mythtv-commits] mythtv/master commit: 5bf377b55 by Robert McNamara (rmcnamara)
mythtv at theblains.net
Sun Apr 10 14:16:11 UTC 2011
> API: Add the ability to create and update channels.
> Obviously, these are POST only. Still, for creation of basic channels
> creation of multiplexes, though creation of channels on existing
> multiplexes would work) this does the trick.
> rceID=3&ChannelID=9743&CallSign=CHNL&ChannelName=My Great
> 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
> and don't break your setup. ;)
I haven't looked at ChannelUtil to see what edits are being done, but wanted
to remind you that calls to these or any method without all the parameters
will work. The missing parameters will be assigned default values based on
So if an update call is made with only a channel ID, it will in effect
update all columns with 0's and empty strings.
Let me know if you want to discuss possibly changing this default behavior
or maybe making it optional per method.
More information about the mythtv-dev