cache avinfo

This commit is contained in:
j 2017-03-06 13:34:11 +01:00
parent a1c5108b45
commit 87b4d1bd0d

View file

@ -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)