diff --git a/scraper/scrapers/1337x/1337x_api.js b/scraper/scrapers/1337x/1337x_api.js index 295bec5..a1d36ba 100644 --- a/scraper/scrapers/1337x/1337x_api.js +++ b/scraper/scrapers/1337x/1337x_api.js @@ -128,7 +128,7 @@ function parseTorrentPage(body) { seeders: parseInt(details.find('strong:contains(\'Seeders\')').next().text(), 10), leechers: parseInt(details.find('strong:contains(\'Leechers\')').next().text(), 10), category: details.find('strong:contains(\'Category\')').next().text(), - language: details.find('strong:contains(\'Language\')').next().text(), + languages: details.find('strong:contains(\'Language\')').next().text(), size: parseSize(details.find('strong:contains(\'Total size\')').next().text()), uploadDate: parseDate(details.find('strong:contains(\'Date uploaded\')').next().text()), imdbId: imdbIdMatch && imdbIdMatch[1], diff --git a/scraper/scrapers/1337x/1337x_scraper.js b/scraper/scrapers/1337x/1337x_scraper.js index 90a1eb6..c688a9c 100644 --- a/scraper/scrapers/1337x/1337x_scraper.js +++ b/scraper/scrapers/1337x/1337x_scraper.js @@ -78,11 +78,12 @@ async function processTorrentRecord(record) { provider: NAME, torrentId: torrentFound.torrentId, title: torrentFound.name.replace(/\t|\s+/g, ' '), - seeders: torrentFound.seeders, - size: torrentFound.size, type: TYPE_MAPPING[torrentFound.category], + size: torrentFound.size, + seeders: torrentFound.seeders, uploadDate: torrentFound.uploadDate, imdbId: torrentFound.imdbId, + languages: torrentFound.languages || undefined }; return createTorrentEntry(torrent); diff --git a/scraper/scrapers/kickass/kickass_api.js b/scraper/scrapers/kickass/kickass_api.js index d3467c7..e407cc2 100644 --- a/scraper/scrapers/kickass/kickass_api.js +++ b/scraper/scrapers/kickass/kickass_api.js @@ -136,7 +136,7 @@ function parseTorrentPage(body) { seeders: parseInt(info.find('span[class="torrent_stats__seed_count mr-2"]').first().text().match(/\d+/)[0], 10), leechers: parseInt(info.find('span[class="torrent_stats__leech_count mr-2"]').first().text().match(/\d+/)[0], 10), category: info.find('small').first().children('a').first().attr('href').match(/\/category\/([^\/]+)/)[1], - language: description.find('span:contains(\'Audio\')').next().children().eq(0).text(), + languages: description.find('span:contains(\'Audio\')').next().children().eq(0).text(), size: parseSize(description.find('ul[class="file_list"]').first().find('li').first().contents().eq(2).text() .match(/\(Size: (.+)\)/)[1]), uploadDate: moment(info.find('time').first().text()).toDate(), diff --git a/scraper/scrapers/kickass/kickass_scraper.js b/scraper/scrapers/kickass/kickass_scraper.js index e52455d..e9c5311 100644 --- a/scraper/scrapers/kickass/kickass_scraper.js +++ b/scraper/scrapers/kickass/kickass_scraper.js @@ -73,11 +73,12 @@ async function processTorrentRecord(record) { provider: NAME, torrentId: torrentFound.torrentId, title: torrentFound.name.replace(/\t|\s+/g, ' '), - size: torrentFound.size, type: TYPE_MAPPING[torrentFound.category], - imdbId: torrentFound.imdbId, - uploadDate: torrentFound.uploadDate, + size: torrentFound.size, seeders: torrentFound.seeders, + uploadDate: torrentFound.uploadDate, + imdbId: torrentFound.imdbId, + languages: torrentFound.languages || undefined }; return createTorrentEntry(torrent).then(() => torrent);