You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Prowlarr/UI/History/Model.js

23 lines
650 B

12 years ago
"use strict";
define(['app','Series/SeriesModel', 'Series/EpisodeModel'], function () {
12 years ago
NzbDrone.History.Model = Backbone.Model.extend({
12 years ago
mutators: {
seasonNumber: function () {
return this.get('episode').seasonNumber;
},
12 years ago
12 years ago
paddedEpisodeNumber: function () {
return this.get('episode').episodeNumber.pad(2);
}
},
parse: function (model) {
model.series = new NzbDrone.Series.SeriesModel(model.series);
model.episode = new NzbDrone.Series.EpisodeModel(model.episode);
return model;
12 years ago
}
12 years ago
});
});