|
@@ -155,6 +155,8 @@ def iterate_audios(dt, station):
|
|
from_time = time.mktime(dt.timetuple())
|
|
from_time = time.mktime(dt.timetuple())
|
|
to_time = from_time + 5 * 60
|
|
to_time = from_time + 5 * 60
|
|
|
|
|
|
|
|
+ print('from {} to {}'.format(from_time, to_time))
|
|
|
|
+
|
|
cursor = db.cursor()
|
|
cursor = db.cursor()
|
|
cursor.execute((
|
|
cursor.execute((
|
|
'select "filename", "timestamp" '
|
|
'select "filename", "timestamp" '
|
|
@@ -168,8 +170,6 @@ def iterate_audios(dt, station):
|
|
files = [file for file in cursor]
|
|
files = [file for file in cursor]
|
|
cursor.close()
|
|
cursor.close()
|
|
|
|
|
|
- print('files found {}'.format(len(files)))
|
|
|
|
-
|
|
|
|
for mp3 in files:
|
|
for mp3 in files:
|
|
mp3path, ts = mp3
|
|
mp3path, ts = mp3
|
|
mp3name = os.path.basename(mp3path)
|
|
mp3name = os.path.basename(mp3path)
|