Skip to content

Commit

Permalink
1337x.to to 1337x.am
Browse files Browse the repository at this point in the history
  • Loading branch information
patheticGeek committed May 24, 2020
1 parent f333434 commit 1b23738
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crawllers/1337x/search.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const puppeteer = require("puppeteer");
const O337X_SITE =
process.env.O337X_SITE || "https://www.1337x.to/search/{term}/1/";
const O337X_SITE = process.env.O337X_SITE || "https://www.1337x.am/search/{term}/1/";

async function search(search, site = O337X_SITE) {
try {
Expand Down Expand Up @@ -28,10 +27,8 @@ async function search(search, site = O337X_SITE) {
", By: " +
item.querySelectorAll("td")[5].innerText;
results.push({
name: item.querySelectorAll("td")[0].querySelector("a:last-of-type")
.innerText,
link: item.querySelectorAll("td")[0].querySelector("a:last-of-type")
.href,
name: item.querySelectorAll("td")[0].querySelector("a:last-of-type").innerText,
link: item.querySelectorAll("td")[0].querySelector("a:last-of-type").href,
seeds: item.querySelectorAll("td")[1].innerText,
details
});
Expand Down

0 comments on commit 1b23738

Please sign in to comment.