Don't leave bitrate undefined for non-temporal photos.
This commit is contained in:
parent
a4a278c173
commit
55c14f3844
1 changed files with 2 additions and 0 deletions
|
@ -501,6 +501,8 @@ class Photo(ObjectBase):
|
|||
|
||||
if self.duration:
|
||||
self.bitrate = (self.bytes / 128) / self.duration
|
||||
else:
|
||||
self.bitrate = None
|
||||
|
||||
self.mimetype = helpers.get_mimetype(self.real_filepath)
|
||||
if self.mimetype is None:
|
||||
|
|
Loading…
Reference in a new issue