only update state if backend is encoding

This commit is contained in:
j 2015-02-11 12:18:08 +00:00
parent afefe3de0b
commit 91cb09006a

View file

@ -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;
}