encoding is not available

This commit is contained in:
j 2013-09-18 15:41:06 +00:00
parent 6a8e82fe0e
commit 14d147013d
1 changed files with 3 additions and 3 deletions

View File

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