[mythtv-users] commflagging and cutlists

Yan Seiner yan at seiner.com
Mon Jan 20 17:11:07 UTC 2014


On 01/20/2014 08:28 AM, Michael T. Dean wrote:
> On 01/20/2014 10:48 AM, Thomas Boehm wrote:
>> Michael T. Dean wrote:
>>> Still, using the Python bindings would be much better than looking in
>>> the database.
>> I'm not a programmer and I don't intend to learn a programming language
>> if a one liner or a small bash script solves the problem ;-)
>
> If you look at the huge bash script that was posted--which is huge 
> because it's written in bash instead of a more-appropriate programming 
> language--you'll see that it's not a one liner or a small bash script 
> solving the problem.
Yup, it's big, it's not elegant, but it gets the job done.  And it's 
going to get bigger if I want to add some nice-to-have status info. To 
be fair, though, much of the hugeness comes from extensive error 
checking and logging.  The actual logic is about 15 lines.

If I can get some pointers on using python and myth bindings (examples 
of system calls, updating the database, and so on) I will try to rewrite 
it in python and probably simplify it quite a bit - or at least make it 
more elegant.


More information about the mythtv-users mailing list