mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
EpisodeFile is downloaded if not available already
This commit is contained in:
parent
b1899b5f6f
commit
ce9166c6a9
8 changed files with 103 additions and 21 deletions
|
@ -1,22 +1,10 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'moment',
|
||||
'Series/SeriesModel',
|
||||
'Series/EpisodeFileModel'
|
||||
], function (Backbone, Moment, SeriesModel, EpisodeFileModel) {
|
||||
'backbone'
|
||||
], function (Backbone) {
|
||||
return Backbone.Model.extend({
|
||||
|
||||
parse: function (model) {
|
||||
|
||||
if (model.episodeFile) {
|
||||
model.episodeFile = new EpisodeFileModel(model.episodeFile);
|
||||
}
|
||||
|
||||
return model;
|
||||
},
|
||||
|
||||
defaults: {
|
||||
seasonNumber: 0,
|
||||
status : 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue