else:
command = ['sox'] + filenames + ['-t', 'wav', '-']
+if filenames[0].endswith('.wav'):
+ # files get compressed after a while, and they lose their original creation
+ # time
+ creation_time = time.localtime(os.stat(filenames[0])[-3])
+ daytime_as_filename = '%02dh%02d' % creation_time[3:5]
+ if not (daytime_as_filename in filenames[0] and creation_time[5] == 0):
+ floor_start = datetime.datetime(*creation_time[:6])
+
if start != floor_start or end != ceil_end:
trim_parts = ['trim']
if start != floor_start: