<div dir="ltr"><div dir="ltr">On Fri, Mar 27, 2020 at 11:16 AM Klaas de Waal <<a href="mailto:klaas.de.waal@gmail.com" target="_blank">klaas.de.waal@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I am attempting to fix bug #13571 and to test this I need to start and then delete recordings lots and lots of times. It would be great if I can start a script that starts a recording on a specified channel, wait 10 seconds, delete the recording, wait 10 seconds, start a recording etc etc.</div><div>And I then want to run another instance of the script on another channel, etc.</div><div>Has anyone a script available that does something like this, or a basic example on how to build something?</div><div><br></div><div>Thanks,</div><div>Klaas.<br></div></div></blockquote><div><br></div><div>Hi Klaas,</div><div><br></div><div>If I was doing something like that, I would used the Services API.  For example, if you tell to add a recording it will return the recordid. With the recordid you can stop the recording and such.</div><div><br></div><div>As needed, I have been adding to a set of utilities inspired by Bill Meek:<br></div><div><a href="https://github.com/jpoet/MythTVPython" target="_blank">https://github.com/jpoet/MythTVPython</a></div><div>Which might help with some examples.</div><div><br></div><div>I would be willing to write a python script to do exactly what you want, but it might be awhile before I get to it.  I have been fighting a cold (not Covid-10) and not feeling like doing much critical thinking. If you want me to write something for you in a week, though, let me know.</div><div><br></div><div>John<br></div><div><br></div><div><br></div></div></div>