diff options
| author | Mikhail Osipov <mike.osipov@gmail.com> | 2013-11-01 02:15:42 +0400 |
|---|---|---|
| committer | Mikhail Osipov <mike.osipov@gmail.com> | 2013-11-04 19:43:42 +0400 |
| commit | 96d929f09aa28f1d5684743375721d0ac0e832e6 (patch) | |
| tree | 447ac68cb51da2b05f931d27326f8175a1ffe04c /cutter.py | |
| parent | 7b249334370477fbc2076ef6982344e26865945b (diff) | |
remove shntool usage
external decoders support
new options: --track-total, --track-start, --verbose
Diffstat (limited to 'cutter.py')
| -rwxr-xr-x | cutter.py | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -19,13 +19,6 @@ except Exception as err: printerr("import config failed: %s", err) sys.exit(0) -def msf(ts): - m = ts / (60 * 75) - s = ts / 75 % 60 - f = ts % 75 - - return "%d:%02d:%02d" % (m, s, f) - def print_cue(cue): for k, v in cue.attrs(): printf("%s: %s\n", k.upper(), quote(v)) @@ -75,6 +68,9 @@ def parse_args(): parser.add_option("-n", "--dry-run", action="store_true", default=False, dest="dry_run") + parser.add_option("-v", "--verbose", + dest="verbose", action="store_true", default=False) + enc = OptionGroup(parser, "Encoding options") enc.add_option("-t", "--type", dest="type", @@ -146,6 +142,9 @@ def parse_args(): else: tag.add_option("--" + opt, dest=opt, default="") + tag.add_option("--track-total", type="int", dest="tracktotal") + tag.add_option("--track-start", type="int", dest="trackstart") + parser.add_option_group(tag) return parser.parse_args() |
