From f6e209651f587aaacfec39dc83e35a647b4b236f Mon Sep 17 00:00:00 2001 From: loujine Date: Sun, 29 May 2016 17:56:11 +0000 Subject: [PATCH] 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 --- batch-add-recording-relationships.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/batch-add-recording-relationships.user.js b/batch-add-recording-relationships.user.js index dfc7700..adf087d 100644 --- a/batch-add-recording-relationships.user.js +++ b/batch-add-recording-relationships.user.js @@ -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 () {