mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
When a new episode is grabbed the client will update its status
This commit is contained in:
parent
bcb13f93ff
commit
c1b68e0dee
7 changed files with 101 additions and 18 deletions
|
@ -23,7 +23,22 @@ define(
|
|||
episodeCollection: this.episodeCollection,
|
||||
series : this.series
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
onEpisodeGrabbed: function (message) {
|
||||
if (message.episode.series.id != this.episodeCollection.seriesId) {
|
||||
return;
|
||||
}
|
||||
|
||||
var self = this;
|
||||
|
||||
_.each(message.episode.episodes, function (episode){
|
||||
var ep = self.episodeCollection.find({ id: episode.id });
|
||||
ep.set('downloading', true);
|
||||
console.debug(episode.title);
|
||||
});
|
||||
|
||||
this.render();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue