[mythtv-firehose] mythtv/master commit: d1477f899 by Robert McNamara (rmcnamara)

MythTV noreply at mythtv.org
Tue Feb 7 05:39:14 UTC 2012

      Author:  Robert McNamara <rmcnamara at mythtv.org>
 Change Date:  2012-02-06T21:35:43-08:00
   Push Date:  2012/02/06 21:39:00 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  d1477f899cb7079e21d42f894cb3cfd2873d96a5
   Changeset:  https://github.com/MythTV/mythtv/commit/d1477f899


Services: Add a AddRecordSchedule API.

This POST-only API will add (and technically speaking, modify where a pre-existing
rule exists) a recording rule for a given chanid and starttime.  Because most
of the Services API is build around the chanid and starttime info, and because I
didn't want to make an already ungodly-long list of arguments even longer, I've
opted for this first method to support only those people who actually have listings
information.  In other words, this API cannot be used to create manual recordings,
though that can be added as a separate method (and I suppose this one could be
retrofit to use it like the image content APIs all use GetImageFile).

This API takes all the recording-specific arguments in addition to chanid and
starttime, but at its simplest, one can create a recording rule as follows:


This will create a single recording rule, matching duplicates against all,
with a matching method of subtitle and description.  It will use the Default
Storage Group, Playback Group, and Recording Profile.

A more complicated rule setup might be something like this:


Etc.  See code and wsdl for documentation.



More information about the mythtv-firehose mailing list