<div dir="ltr">On Sun, Oct 14, 2018 at 11:17 AM David Engel <<a href="mailto:david@istwok.net">david@istwok.net</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Oct 13, 2018 at 11:17:04AM -0600, John P Poet wrote:<br>
> On Fri, Oct 12, 2018 at 7:56 PM David Engel <<a href="mailto:david@istwok.net" target="_blank">david@istwok.net</a>> wrote:<br>
> > There are 4 ways to call Dvr/GetRecordSchedule:<br>
> ><br>
> > nRecordId > 0 : Return the existing recording rule itself. Not<br>
> > necessarily tied to a specific program.<br>
> ><br>
> > !sTemplate.isEmpty() : Return the existing, template rule itself.<br>
> ><br>
> > nRecordedId > 0 : Return the rule for the given recording.<br>
> ><br>
> > nChanId > 0 && dStartTime.isValid() : Return the matching rule for the<br>
> > given program. Optionally, return an override rule when bMakeOverride<br>
> > is set.<br>
> ><br>
> <br>
> Good to know. I had not thought of retrieving a template first. That<br>
> seems like a good approach.<br>
<br>
Editing recording rules is an area where MythTV's flexibility bites us<br>
hard. It's not reasonable for external users of the API to know all<br>
of the business rules that must be followed. I tried to make it easy<br>
to get the existing rule for a given program or a suitable starting<br>
rule when one doesn't exist. Please let me know if have suggestions<br>
on how to improve things.<br>
<br>
> Has anyone written a set of python tools for controlling Myth with the<br>
> services API, that has been published somewhere? The documentation is<br>
> currently somewhat sparse, and examples might be helpful.<br>
<br>
None that I know [much] of. Kodi has something but since it probably<br>
conforms to their own, generic, PVR interface, it might not be the<br>
best example. The only other thing I know of is Stuart Morgan's work<br>
on the built-in, web interface but I'm pretty sure that's all in<br>
javascript/jquery.<br>
<br></blockquote><div><br></div><div>Thanks, David.</div><div><br></div><div>John<br></div></div></div>