👷🏻‍♀️ make sources something to configure

This commit is contained in:
neingeist 2021-12-06 22:45:38 +01:00
parent 488ae1aa71
commit 40e1f51faf
3 changed files with 43 additions and 25 deletions

View file

@ -10,7 +10,7 @@ def generate_test_file(fn, delta):
'ffmpeg',
'-f', 'lavfi',
'-i', 'sine=frequency=1000:duration=%d' % delta.total_seconds(),
'-b:a', '%dk' % Config.KBITS,
'-b:a', '%dk' % Config.kbits,
fn
])
@ -21,7 +21,7 @@ delta = timedelta(hours=1)
t = start
while t < end:
fn = os.path.join(Config.DATA_DIR, 'qfhi-{:04d}{:02d}{:02d}-{:02d}{:02d}.mp3'.format(
fn = os.path.join(Config.data_dir, 'qfhi-{:04d}{:02d}{:02d}-{:02d}{:02d}.mp3'.format(
t.year, t.month, t.day, t.hour, t.minute))
print(fn)
generate_test_file(fn, delta)