mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02: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
|
|
}
|
|
});
|
|
});
|