fix stream path
This commit is contained in:
parent
16b0240d5a
commit
de419b7d25
2 changed files with 2 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue