mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 08:22:35 +01:00
26 lines
587 B
JavaScript
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
|
|
}
|
|
});
|
|
});
|