mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
fully working add series
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
@@ -8,10 +8,21 @@ define(
|
||||
url : window.ApiRoot + '/series/lookup',
|
||||
model: SeriesModel,
|
||||
|
||||
initialize: function (options) {
|
||||
this.unmappedFolderModel = options.unmappedFolderModel;
|
||||
},
|
||||
|
||||
|
||||
parse: function (response) {
|
||||
|
||||
var self = this;
|
||||
|
||||
_.each(response, function (model) {
|
||||
model.id = undefined;
|
||||
|
||||
if (self.unmappedFolderModel) {
|
||||
model.path = self.unmappedFolderModel.get('folder').path;
|
||||
}
|
||||
});
|
||||
|
||||
return response;
|
||||
|
Reference in New Issue
Block a user