From 14d147013dc9cfdd29d67404bb9d3feb4db02022 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 18 Sep 2013 15:41:06 +0000 Subject: [PATCH] encoding is not available --- pandora/archive/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 5da81ebf..70cee8dc 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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 = {