|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
"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({
|
|
|
|
|
|
|
|
|
|
urlRoot: NzbDrone.Constants.ApiRoot + '/series',
|
|
|
|
@ -44,16 +44,19 @@ define(['app', 'Quality/QualityProfileCollection', 'AddSeries/RootFolders/RootFo
|
|
|
|
|
|
|
|
|
|
return Date.create(date).short();
|
|
|
|
|
},
|
|
|
|
|
route : function(){
|
|
|
|
|
route : function () {
|
|
|
|
|
return '/series/details/' + this.get('titleSlug');
|
|
|
|
|
//return '/series/details/' + this.get('id');
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
qualityProfile: function () {
|
|
|
|
|
return qualityProfiles.get(this.get('qualityProfileId')).toJSON();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
defaults: {
|
|
|
|
|
episodeFileCount: 0,
|
|
|
|
|
episodeCount : 0,
|
|
|
|
|
qualityProfiles : qualityProfileCollection,
|
|
|
|
|
rootFolders : rootFolders,
|
|
|
|
|
isExisting : false,
|
|
|
|
|
status : 0
|
|
|
|
|
}
|
|
|
|
|