2013-06-22 06:24:24 +00:00
|
|
|
'use strict';
|
2013-06-24 23:41:59 +00:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'backbone',
|
2013-07-17 06:23:44 +00:00
|
|
|
'moment',
|
2013-08-21 06:46:23 +00:00
|
|
|
'Series/SeriesModel',
|
|
|
|
'Series/EpisodeFileModel'
|
|
|
|
], function (Backbone, Moment, SeriesModel, EpisodeFileModel) {
|
2013-06-24 23:41:59 +00:00
|
|
|
return Backbone.Model.extend({
|
|
|
|
|
|
|
|
parse: function (model) {
|
|
|
|
|
2013-08-21 06:46:23 +00:00
|
|
|
if (model.episodeFile) {
|
|
|
|
model.episodeFile = new EpisodeFileModel(model.episodeFile);
|
|
|
|
}
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
return model;
|
|
|
|
},
|
2013-06-09 20:51:32 +00:00
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
defaults: {
|
|
|
|
seasonNumber: 0,
|
2013-06-29 00:35:21 +00:00
|
|
|
status : 0
|
2013-06-24 23:41:59 +00:00
|
|
|
}
|
|
|
|
});
|
2013-03-02 19:13:23 +00:00
|
|
|
});
|