1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Force grabbing some delayed releases

Closes #984
This commit is contained in:
Mark McDowall 2015-12-08 22:50:34 -08:00
parent 8c211364e2
commit 4fa4b3507e

View File

@ -1,6 +1,7 @@
'use strict'; 'use strict';
var $ = require('jquery'); var $ = require('jquery');
var _ = require('underscore');
var vent = require('../../vent'); var vent = require('../../vent');
var TemplatedCell = require('../../Cells/TemplatedCell'); var TemplatedCell = require('../../Cells/TemplatedCell');
var RemoveFromQueueView = require('./RemoveFromQueueView'); var RemoveFromQueueView = require('./RemoveFromQueueView');
@ -40,11 +41,12 @@ module.exports = TemplatedCell.extend({
_grab : function() { _grab : function() {
var self = this; var self = this;
var data = _.omit(this.model.toJSON(), 'series', 'episode');
var promise = $.ajax({ var promise = $.ajax({
url : window.NzbDrone.ApiRoot + '/queue/grab', url : window.NzbDrone.ApiRoot + '/queue/grab',
type : 'POST', type : 'POST',
data : JSON.stringify(this.model.toJSON()) data : JSON.stringify(data)
}); });
this.$(this.ui.grab).spinForPromise(promise); this.$(this.ui.grab).spinForPromise(promise);