[mythtv-users] commflagging and cutlists

CACook at Quantum-Sci.com CACook at Quantum-Sci.com
Mon Jan 20 07:24:10 UTC 2014


On Mon, 20 Jan 2014 00:47:48 -0600
Bill Meek <keemllib at gmail.com> wrote:
> #!/usr/bin/env python
> 
> # To run: somefile.py 2624 2014-01-17T14:00:00Z
> 
> # Returns 0 if commflagged is set, 2 if not and 3 if there was no
> match # for chanid/starttime. Returns 1 for other errors, e.g.
> MythDB() fails.
> 
> from MythTV import MythDB
> import sys
> 
> for r in MythDB().searchRecorded(chanid = sys.argv[1], starttime =
> sys.argv[2]): if r.commflagged == 1:
>          sys.exit(0)
>      else:
>          sys.exit(2)
> 
> sys.exit(3)

Seems like this would run on h.264 recordings, which have never been able to actually cut commercials.  More power to ya.


More information about the mythtv-users mailing list