fix stream path

This commit is contained in:
j 2011-12-30 14:51:43 +05:30
parent 16b0240d5a
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], resolution=config['resolutions'][0],
format=config['formats'][0]) format=config['formats'][0])
if created: if created:
stream.video.name = stream.name() stream.video.name = stream.path(stream.name())
ox.makedirs(os.path.dirname(stream.video.path)) ox.makedirs(os.path.dirname(stream.video.path))
with open(stream.video.path, 'w') as f: with open(stream.video.path, 'w') as f:
f.write(chunk.read()) f.write(chunk.read())

View file

@ -415,7 +415,7 @@
], ],
"listViews": [ "listViews": [
{"id": "list", "title": "as List"}, {"id": "list", "title": "as List"},
{"id": "icons", "title": "as Icons"}, {"id": "grid", "title": "as Grid"},
//{"id": "info", "title": "with Info"}, //{"id": "info", "title": "with Info"},
{"id": "clips", "title": "with Clips"}, {"id": "clips", "title": "with Clips"},
{"id": "timelines", "title": "with Timelines"}, {"id": "timelines", "title": "with Timelines"},