mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
more import existing series code.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
/// <reference path="../../app.js" />
|
||||
NzbDrone.AddSeries.Existing.UnmappedFolderModel = Backbone.Model.extend({
|
||||
|
||||
|
||||
});
|
||||
|
||||
NzbDrone.AddSeries.Existing.UnmappedFolderCollection = Backbone.Collection.extend({
|
||||
model: NzbDrone.AddSeries.Existing.UnmappedFolderModel,
|
||||
|
||||
|
||||
importArray: function (unmappedFolderArray) {
|
||||
|
||||
if (!unmappedFolderArray) {
|
||||
throw "folder array is required";
|
||||
}
|
||||
|
||||
_.each(unmappedFolderArray, function (folder) {
|
||||
this.push(new NzbDrone.AddSeries.Existing.UnmappedFolderModel({ folder: folder }));
|
||||
}, this);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user