Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/src/commit/d8da292516f82cf952e6f96cc6942b20164ededf/UI/Series/EpisodeModel.js You should set ROOT_URL correctly, otherwise the web may not work correctly.
Sonarr/UI/Series/EpisodeModel.js

40 lines
1.0 KiB

'use strict';
define(
[
'backbone',
'moment',
'Series/SeriesModel'
], function (Backbone, Moment, SeriesModel) {
return Backbone.Model.extend({
initialize: function () {
if (this.has('series')) {
var start = Moment(this.get('airDateUtc'));
var runtime = this.get('series').get('runtime');
this.set('end', start.add('minutes', runtime));
}
},
parse: function (model) {
model.series = new SeriesModel(model.series);
return model;
},
toJSON: function () {
var json = _.clone(this.attributes);
if (this.has('series')) {
json.series = this.get('series').toJSON();
}
return json;
},
defaults: {
seasonNumber: 0,
status : 0
}
});
});