1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-01 08:22:35 +01:00
Sonarr/UI/Series/EpisodeModel.js
2013-08-21 20:34:41 -07:00

26 lines
587 B
JavaScript

'use strict';
define(
[
'backbone',
'moment',
'Series/SeriesModel',
'Series/EpisodeFileModel'
], function (Backbone, Moment, SeriesModel, EpisodeFileModel) {
return Backbone.Model.extend({
parse: function (model) {
if (model.episodeFile) {
model.episodeFile = new EpisodeFileModel(model.episodeFile);
}
return model;
},
defaults: {
seasonNumber: 0,
status : 0
}
});
});