From e79064019e78502264d216d59349ddb5d067c9e8 Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Fri, 27 Mar 2020 19:51:35 +0100 Subject: [PATCH] [scraper] fixes tpb browse request url --- scraper/scrapers/thepiratebay/thepiratebay_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/scrapers/thepiratebay/thepiratebay_api.js b/scraper/scrapers/thepiratebay/thepiratebay_api.js index e331c14..5b38406 100644 --- a/scraper/scrapers/thepiratebay/thepiratebay_api.js +++ b/scraper/scrapers/thepiratebay/thepiratebay_api.js @@ -116,7 +116,7 @@ function browse(config = {}, retries = 2) { const category = config.category || 0; return Promises.first(proxyList - .map((proxyUrl) => singleRequest(`${proxyUrl}/browse/${category}/${page}`, config) + .map((proxyUrl) => singleRequest(`${proxyUrl}/browse/${category}/${page}/3`, config) .then((body) => parseBody(body)))) .catch((err) => browse(config, retries - 1)); }