From 3c474ea1b01f602a9ed0c2a77a3f2d01464a8109 Mon Sep 17 00:00:00 2001 From: babakounine Date: Fri, 6 Sep 2024 19:02:09 +0200 Subject: [PATCH] time format correction to date --- src/tadam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tadam.py b/src/tadam.py index 53ca741..8a2bee8 100755 --- a/src/tadam.py +++ b/src/tadam.py @@ -119,7 +119,7 @@ def chunk(outfolder, length): samplerate*length+samplerate*length] time_file = datetime.strptime(time, "%Y%m%d_%H%M%S") + timedelta(seconds = 5 * i) - time_file = str(time_file.time().__format__("%Y%m%d_%H%M%S")) + time_file = str(time_file.__format__("%Y%m%d_%H%M%S")) filename = infile.replace(f'{time}.wav', f'{time_file}_000.wav') try: sf.write(filename, temp, samplerate)