1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Series/EpisodeModel.js

26 lines
587 B
JavaScript
Raw Normal View History

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