mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04: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