load info from stream in file has no info
This commit is contained in:
parent
83393ee385
commit
437391caf9
1 changed files with 4 additions and 0 deletions
|
@ -331,6 +331,10 @@ class File(models.Model):
|
||||||
stream.available = True
|
stream.available = True
|
||||||
stream.info = {}
|
stream.info = {}
|
||||||
stream.save()
|
stream.save()
|
||||||
|
if self.info.keys() == ['extension']:
|
||||||
|
self.info.update(stream.info)
|
||||||
|
self.parse_info()
|
||||||
|
self.save()
|
||||||
return True, stream.media.size
|
return True, stream.media.size
|
||||||
return save_chunk(stream, stream.media, chunk, offset, name, done_cb)
|
return save_chunk(stream, stream.media, chunk, offset, name, done_cb)
|
||||||
return False, 0
|
return False, 0
|
||||||
|
|
Loading…
Reference in a new issue