forked from 0x2620/pandora
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],
|
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())
|
||||||
|
|
|
@ -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"},
|
||||||
|
|
Loading…
Reference in a new issue