mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-12 19:32:27 +00:00
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:
parent
3405cf162b
commit
f6e209651f
1 changed files with 4 additions and 4 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue