diff --git a/scraper/scrapers/1337x/1337x_scraper.js b/scraper/scrapers/1337x/1337x_scraper.js index 3471694..188c8ec 100644 --- a/scraper/scrapers/1337x/1337x_scraper.js +++ b/scraper/scrapers/1337x/1337x_scraper.js @@ -92,7 +92,7 @@ async function processTorrentRecord(record) { function typeMapping() { const mapping = {}; mapping[leetx.Categories.MOVIE] = Type.MOVIE; - mapping[leetx.Categories.DOCUMENTARIES] = Type.SERIES; + mapping[leetx.Categories.DOCUMENTARIES] = Type.MOVIE; mapping[leetx.Categories.TV] = Type.SERIES; mapping[leetx.Categories.ANIME] = Type.ANIME; return mapping; diff --git a/scraper/scrapers/nyaasi/nyaa_si_api.js b/scraper/scrapers/nyaasi/nyaa_si_api.js index 6fa53fe..39d2cb6 100644 --- a/scraper/scrapers/nyaasi/nyaa_si_api.js +++ b/scraper/scrapers/nyaasi/nyaa_si_api.js @@ -35,7 +35,7 @@ function torrent(torrentId) { } function search(query) { - return si.search(query) + return si.search(query, null, { category: Categories.ANIME.ENGLISH}) .then(results => results.map(torrent => parseTorrent(torrent))); } diff --git a/scraper/scrapers/nyaasi/nyaa_si_scraper.js b/scraper/scrapers/nyaasi/nyaa_si_scraper.js index ce47b9d..d1ba1f7 100644 --- a/scraper/scrapers/nyaasi/nyaa_si_scraper.js +++ b/scraper/scrapers/nyaasi/nyaa_si_scraper.js @@ -20,6 +20,10 @@ async function scrape() { // return Promise.all(ids.map(id => limiter.schedule(() => nyaasi.torrent(id) // .then(torrent => processTorrentRecord(torrent))))) // .then(() => console.log(`[${moment()}] finished ${NAME} scrape`)); + // const queries = ['Sagrada Reset', 'Sakurada Reset']; + // return Promise.all(queries.map(query => limiter.schedule(() => nyaasi.search(query) + // .then(torrents => Promise.all(torrents.map(torrent => limiter.schedule(() => processTorrentRecord(torrent)))))))) + // .then(() => console.log(`[${moment()}] finished ${NAME} scrape`)); return scrapeLatestTorrents() .then(() => { lastScrape.lastScraped = scrapeStart;