[mythtv-users] Help needed for scripted recordings
John P Poet
jppoet at gmail.com
Fri Mar 27 19:00:36 UTC 2020
On Fri, Mar 27, 2020 at 11:16 AM Klaas de Waal <klaas.de.waal at gmail.com>
wrote:
> Hi all,
>
> 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.
> And I then want to run another instance of the script on another channel,
> etc.
> Has anyone a script available that does something like this, or a basic
> example on how to build something?
>
> Thanks,
> Klaas.
>
Hi Klaas,
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.
As needed, I have been adding to a set of utilities inspired by Bill Meek:
https://github.com/jpoet/MythTVPython
Which might help with some examples.
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.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200327/dd39337f/attachment.htm>
More information about the mythtv-users
mailing list