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

26 lines
714 B

'use strict';
define(
[
'backbone',
'Series/SeasonModel'
], function (Backbone, SeasonModel) {
return Backbone.Collection.extend({
url : window.ApiRoot + '/season',
model: SeasonModel,
12 years ago
comparator: function (season) {
return -season.get('seasonNumber');
},
12 years ago
bySeries: function (series) {
var filtered = this.filter(function (season) {
return season.get('seriesId') === series;
});
var SeasonCollection = require('Series/SeasonCollection');
return new SeasonCollection(filtered);
}
});
});