only update state if backend is encoding
This commit is contained in:
parent
afefe3de0b
commit
91cb09006a
1 changed files with 1 additions and 1 deletions
|
@ -638,9 +638,9 @@ pandora.ui.mediaView = function(options) {
|
||||||
result.data.items.forEach(function(item) {
|
result.data.items.forEach(function(item) {
|
||||||
if (self.$filesList.value(item.id, 'state') == 'encoding'
|
if (self.$filesList.value(item.id, 'state') == 'encoding'
|
||||||
&& item.state != 'encoding') {
|
&& item.state != 'encoding') {
|
||||||
|
self.$filesList.value(item.id, 'state', item.state);
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
self.$filesList.value(item.id, 'state', item.state);
|
|
||||||
if (!update && item.state == 'encoding') {
|
if (!update && item.state == 'encoding') {
|
||||||
update = true;
|
update = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue