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/e4fc0c57b33e8840fd2a41c8a0fcd95546ce0a5d/UI/Series/EpisodeFileCollection.js
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
'use strict';
|
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'backbone',
|
|
|
|
|
'Series/EpisodeFileModel'
|
|
|
|
|
], function (Backbone, EpisodeFileModel) {
|
|
|
|
|
return Backbone.Collection.extend({
|
|
|
|
|
url : window.ApiRoot + '/episodefile',
|
|
|
|
|
model: EpisodeFileModel,
|
|
|
|
|
|
|
|
|
|
originalFetch: Backbone.Collection.prototype.fetch,
|
|
|
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
|
this.seriesId = options.seriesId;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
fetch: function (options) {
|
|
|
|
|
if (!this.seriesId) {
|
|
|
|
|
throw 'seriesId is required';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!options) {
|
|
|
|
|
options = {};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
options['data'] = { seriesId: this.seriesId };
|
|
|
|
|
|
|
|
|
|
return this.originalFetch.call(this, options);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|