|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
from datetime import datetime, timedelta
|
|
|
|
|
import os
|
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
from config import Config
|
|
|
|
@ -18,8 +19,8 @@ delta = timedelta(hours=1)
|
|
|
|
|
|
|
|
|
|
t = start
|
|
|
|
|
while t < end:
|
|
|
|
|
fn = 'tmp/qfhi-{:04d}{:02d}{:02d}-{:02d}{:02d}.mp3'.format(
|
|
|
|
|
t.year, t.month, t.day, t.hour, t.minute)
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|