drones
This commit is contained in:
parent
b22d4e9551
commit
083934582a
1 changed files with 4 additions and 3 deletions
|
@ -77,9 +77,10 @@ else:
|
|||
|
||||
if not os.path.exists('DRONES.json'):
|
||||
DRONES = defaultdict(list)
|
||||
for letter in os.listdir('drones'):
|
||||
for fn in sorted(os.listdir(os.path.join('drones', letter))):
|
||||
path = os.path.join('drones', letter, fn)
|
||||
prefix = 'drones'
|
||||
for letter in os.listdir(prefix):
|
||||
for fn in sorted(os.listdir(os.path.join(prefix, letter))):
|
||||
path = os.path.join(prefix, letter, fn)
|
||||
DRONES[letter[0]].append({
|
||||
'path': path,
|
||||
'duration': ox.avinfo(path)['duration']
|
||||
|
|
Loading…
Reference in a new issue