Fix number of recordings by page

Since musicbrainz switched from 50 to 100 recordings per page, the script is not looking at the right recordings to check whether they already have a performance link
This commit is contained in:
loujine 2016-05-29 17:56:11 +00:00 committed by Jérôme Roy
parent 3405cf162b
commit f6e209651f

View file

@ -461,8 +461,8 @@ function batch_recording_rels() {
queue_recordings_request(
"/ws/2/recording?artist=" + ARTIST_MBID +
"&inc=work-rels" +
"&limit=50" +
"&offset=" + ((CURRENT_PAGE - 1) * 50) +
"&limit=100" +
"&offset=" + ((CURRENT_PAGE - 1) * 100) +
"&fmt=json"
);
}
@ -719,7 +719,7 @@ function batch_recording_rels() {
}
};
var works_url = "/ws/2/work?artist=" + mbid + "&inc=aliases&limit=50&fmt=json";
var works_url = "/ws/2/work?artist=" + mbid + "&inc=aliases&limit=100&fmt=json";
ws_requests.unshift(function () {
request_works(works_url, 0, -1, callback);
});
@ -765,7 +765,7 @@ function batch_recording_rels() {
if (works.length + offset < count) {
ws_requests.unshift(function () {
request_works(url, offset + 50, count, callback);
request_works(url, offset + 100, count, callback);
});
}
}).fail(function () {