encoding is not available

This commit is contained in:
j 2013-09-18 15:41:06 +00:00
parent 6a8e82fe0e
commit 14d147013d

View file

@ -341,14 +341,14 @@ class File(models.Model):
if self.type != 'video': if self.type != 'video':
duration = None duration = None
state = '' state = ''
if self.available: if self.encoding:
state = 'available'
elif self.encoding:
state = 'encoding' state = 'encoding'
elif self.queued: elif self.queued:
state = 'queued' state = 'queued'
elif self.uploading: elif self.uploading:
state = 'uploading' state = 'uploading'
elif self.available:
state = 'available'
elif self.wanted: elif self.wanted:
state = 'wanted' state = 'wanted'
data = { data = {