[mythtv-users] Converting scripts to not use the database directly

Mike Rice mikerice1969 at gmail.com
Sat Nov 1 01:17:03 UTC 2014


Over the years I've developed the bad habit of changing things in the
database directly or using scripts to do it.  After the recent discussion
about using an embedded database I decided to try to get rid of these
scripts and refrain from editing the database.

So far I've replaced a recording_started bash script with a perl script
using the bindings.  That went pretty well but I was only accessing data
and not updating anything.

Next problem: I have channels that I need to toggle the visibility of at
certain times of the year.  These are channels that show hockey part of the
year and baseball other part.  Assuming I only subscribe to one and not the
other I need them to go away for awhile.

I assume this can be done manually with the channel editor but I don't
normally have a keyboard attached and rather do it with a script.  Looks
like I can do it with mythweb too.  A nice script I can run a few times a
year would be easier to me.

Anyone have a script to do this that doesn't modify the database directly?
Or can someone point me to an existing script that can change the
attributes of a channel?  Or some info on how to do this in general?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20141031/29939c5a/attachment-0001.html>


More information about the mythtv-users mailing list