👷🏻♀️ make sources something to configure
This commit is contained in:
parent
488ae1aa71
commit
40e1f51faf
3 changed files with 43 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue