diff --git a/scraper/scrapers/comando/comando_scraper.js b/scraper/scrapers/comando/comando_scraper.js index 2e476bc..377c7ce 100644 --- a/scraper/scrapers/comando/comando_scraper.js +++ b/scraper/scrapers/comando/comando_scraper.js @@ -33,7 +33,7 @@ async function updateSeeders(torrent) { async function scrapeLatestTorrents() { const allowedCategories = [ - // comando.Categories.MOVIE, + comando.Categories.MOVIE, comando.Categories.TV ]; diff --git a/scraper/scrapers/comoeubaixo/comoeubaixo_scraper.js b/scraper/scrapers/comoeubaixo/comoeubaixo_scraper.js index 1c7381c..f01799b 100644 --- a/scraper/scrapers/comoeubaixo/comoeubaixo_scraper.js +++ b/scraper/scrapers/comoeubaixo/comoeubaixo_scraper.js @@ -8,7 +8,7 @@ const { createTorrentEntry, checkAndUpdateTorrent } = require("../../lib/torrent const { updateCurrentSeeders, updateTorrentSize } = require("../../lib/torrent"); const NAME = "ComoEuBaixo"; -const UNTIL_PAGE = 3; +const UNTIL_PAGE = 5; const TYPE_MAPPING = typeMapping(); const limiter = new Bottleneck({ maxConcurrent: 5 }); @@ -42,7 +42,7 @@ async function scrapeLatestTorrents() { .then((entries) => entries.reduce((a, b) => a.concat(b), [])); } -async function scrapeLatestTorrentsForCategory(category, page = 180) { +async function scrapeLatestTorrentsForCategory(category, page = 1) { console.log(`Scrapping ${NAME} ${category} category page ${page}`); return comoeubaixo .browse({ category, page }) diff --git a/scraper/scrapers/scraperHelper.js b/scraper/scrapers/scraperHelper.js index f353a59..1dca812 100644 --- a/scraper/scrapers/scraperHelper.js +++ b/scraper/scrapers/scraperHelper.js @@ -6,7 +6,7 @@ function sanitizePtName(name) { return name .replace(/(.*)\b(\d{3,4}P)\b(?!.*\d{3,4}[Pp])(.*)/, '$1$3 $2') // add resolution to the end if missing .replace(/^[[{]?(?:ACESSE.*|WWW\.)?[A-Z]+\.(COM|ORG|TO|TV)\b\s?[-\]}]+[\s.]*/i, '') // replace watermarks - .replace(/^(\d*(?:\.\d)?(?:[4A-Z-]{3,}|P)[-.]+)+/, '') // replace metadata prefixes + .replace(/^(\d*(?:\.\d{1,2})?(?:[4A-Z-]{3,}|P)[-.]+)+/, '') // replace metadata prefixes .trim(); }