mirror of https://github.com/lidarr/Lidarr
Fixed: Set episode's monitored status from missing and calendar
This commit is contained in:
parent
cc66077943
commit
28aee91d3f
|
@ -8,6 +8,18 @@ define(
|
||||||
defaults: {
|
defaults: {
|
||||||
seasonNumber: 0,
|
seasonNumber: 0,
|
||||||
status : 0
|
status : 0
|
||||||
|
},
|
||||||
|
|
||||||
|
methodUrls: {
|
||||||
|
'update': window.NzbDrone.ApiRoot + '/episodes'
|
||||||
|
},
|
||||||
|
|
||||||
|
sync: function(method, model, options) {
|
||||||
|
if (model.methodUrls && model.methodUrls[method.toLowerCase()]) {
|
||||||
|
options = options || {};
|
||||||
|
options.url = model.methodUrls[method.toLowerCase()];
|
||||||
|
}
|
||||||
|
Backbone.sync(method, model, options);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue