From 91cb09006a4bab55e8f0c13913277d193e78d620 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 11 Feb 2015 12:18:08 +0000 Subject: [PATCH] only update state if backend is encoding --- static/js/mediaView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/mediaView.js b/static/js/mediaView.js index f147da230..2f0d1b9c5 100644 --- a/static/js/mediaView.js +++ b/static/js/mediaView.js @@ -638,9 +638,9 @@ pandora.ui.mediaView = function(options) { result.data.items.forEach(function(item) { if (self.$filesList.value(item.id, 'state') == 'encoding' && item.state != 'encoding') { + self.$filesList.value(item.id, 'state', item.state); done = true; } - self.$filesList.value(item.id, 'state', item.state); if (!update && item.state == 'encoding') { update = true; }