|
|
@ -1,5 +1,5 @@
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
define(['app', 'Quality/QualityProfileCollection', 'AddSeries/RootFolders/RootFolderCollection'], function (app, qualityProfileCollection, rootFolders) {
|
|
|
|
define(['app', 'Quality/QualityProfileCollection'], function (app, qualityProfiles) {
|
|
|
|
NzbDrone.Series.SeriesModel = Backbone.Model.extend({
|
|
|
|
NzbDrone.Series.SeriesModel = Backbone.Model.extend({
|
|
|
|
|
|
|
|
|
|
|
|
urlRoot: NzbDrone.Constants.ApiRoot + '/series',
|
|
|
|
urlRoot: NzbDrone.Constants.ApiRoot + '/series',
|
|
|
@ -46,14 +46,17 @@ define(['app', 'Quality/QualityProfileCollection', 'AddSeries/RootFolders/RootFo
|
|
|
|
},
|
|
|
|
},
|
|
|
|
route : function () {
|
|
|
|
route : function () {
|
|
|
|
return '/series/details/' + this.get('titleSlug');
|
|
|
|
return '/series/details/' + this.get('titleSlug');
|
|
|
|
|
|
|
|
//return '/series/details/' + this.get('id');
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qualityProfile: function () {
|
|
|
|
|
|
|
|
return qualityProfiles.get(this.get('qualityProfileId')).toJSON();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
defaults: {
|
|
|
|
defaults: {
|
|
|
|
episodeFileCount: 0,
|
|
|
|
episodeFileCount: 0,
|
|
|
|
episodeCount : 0,
|
|
|
|
episodeCount : 0,
|
|
|
|
qualityProfiles : qualityProfileCollection,
|
|
|
|
|
|
|
|
rootFolders : rootFolders,
|
|
|
|
|
|
|
|
isExisting : false,
|
|
|
|
isExisting : false,
|
|
|
|
status : 0
|
|
|
|
status : 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|