From f3ab6493418b1284a801ea894e7674a345557cfd Mon Sep 17 00:00:00 2001 From: kolaczyn Date: Thu, 25 Jun 2020 04:04:27 +0200 Subject: [PATCH] now you can easily crop few seconds more both ways --- gen-script.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/gen-script.py b/gen-script.py index 1a0438a..91689cf 100755 --- a/gen-script.py +++ b/gen-script.py @@ -3,16 +3,20 @@ import re import os from datetime import timedelta -search = '(pesky|bird)' # the searched phrase +search = '(pesky bird)' # the searched phrase sides = 6 # how much do we to both sides of a fragment +# TODO: +# side =6 -> side = timedelta(seconds=6) #now sides cant be bigger than 29, because of the way i hardcoded it somewhere +#TODO give an option to use longer version +# the fast version should be for testing only anyway # to make sure that 00:00:02 doesn't become 23:59:42 def clamps(t): - if (t