cache avinfo
This commit is contained in:
parent
a1c5108b45
commit
87b4d1bd0d
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ for i in range(10):
|
|||
shutil.copyfileobj(r.raw, fd)
|
||||
ox.avinfo('%s.tmp' % name)['duration']
|
||||
shutil.move('%s.tmp' % name, name)
|
||||
ox.avinfo(name)['duration']
|
||||
except:
|
||||
print(url, 'failed')
|
||||
os.unlink(lock)
|
||||
|
|
Loading…
Reference in a new issue