fix stream path

This commit is contained in:
j 2011-12-30 14:51:43 +05:30
commit de419b7d25
2 changed files with 2 additions and 2 deletions

View file

@ -243,7 +243,7 @@ class File(models.Model):
resolution=config['resolutions'][0],
format=config['formats'][0])
if created:
stream.video.name = stream.name()
stream.video.name = stream.path(stream.name())
ox.makedirs(os.path.dirname(stream.video.path))
with open(stream.video.path, 'w') as f:
f.write(chunk.read())