mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
Command queue
New: Adding multiple series will queue them instead of running all at once New: Slower scheduled tasks won't be block others from running
This commit is contained in:
@@ -74,7 +74,7 @@ var singleton = function() {
|
||||
return;
|
||||
}
|
||||
|
||||
model.bind('change:state', function(model) {
|
||||
model.bind('change:status', function(model) {
|
||||
if (!model.isActive()) {
|
||||
options.element.stopSpin();
|
||||
|
||||
|
||||
@@ -6,6 +6,14 @@ module.exports = Backbone.Model.extend({
|
||||
|
||||
parse : function(response) {
|
||||
response.name = response.name.toLocaleLowerCase();
|
||||
response.body.name = response.body.name.toLocaleLowerCase();
|
||||
|
||||
for (var key in response.body) {
|
||||
response[key] = response.body[key];
|
||||
}
|
||||
|
||||
delete response.body;
|
||||
|
||||
return response;
|
||||
},
|
||||
|
||||
@@ -33,10 +41,10 @@ module.exports = Backbone.Model.extend({
|
||||
},
|
||||
|
||||
isActive : function() {
|
||||
return this.get('state') !== 'completed' && this.get('state') !== 'failed';
|
||||
return this.get('status') !== 'completed' && this.get('status') !== 'failed';
|
||||
},
|
||||
|
||||
isComplete : function() {
|
||||
return this.get('state') === 'completed';
|
||||
return this.get('status') === 'completed';
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user