forked from 0x2620/pandora
encoding is not available
This commit is contained in:
parent
6a8e82fe0e
commit
14d147013d
1 changed files with 3 additions and 3 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue