Compare commits
2 commits
92d5c6e763
...
a667fc5b5b
| Author | SHA1 | Date | |
|---|---|---|---|
| a667fc5b5b | |||
| f5becafad4 |
2 changed files with 4 additions and 1 deletions
|
|
@ -151,8 +151,10 @@ class File(models.Model):
|
||||||
self.sampleate = 0
|
self.sampleate = 0
|
||||||
self.channels = 0
|
self.channels = 0
|
||||||
|
|
||||||
if self.framerate:
|
if self.framerate and self.duration > 0:
|
||||||
self.pixels = int(self.width * self.height * float(utils.parse_decimal(self.framerate)) * self.duration)
|
self.pixels = int(self.width * self.height * float(utils.parse_decimal(self.framerate)) * self.duration)
|
||||||
|
else:
|
||||||
|
self.pixels = 0
|
||||||
|
|
||||||
def get_path_info(self):
|
def get_path_info(self):
|
||||||
data = {}
|
data = {}
|
||||||
|
|
|
||||||
|
|
@ -1494,6 +1494,7 @@
|
||||||
"hasEvents": true,
|
"hasEvents": true,
|
||||||
"hasPlaces": true,
|
"hasPlaces": true,
|
||||||
"item": "Keyword",
|
"item": "Keyword",
|
||||||
|
"autocomplete": true,
|
||||||
"overlap": true,
|
"overlap": true,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue