Blowpass now uses Gamma module for latest and upcoming.

This commit is contained in:
2020-02-07 01:06:39 +01:00
parent 8a139e1ac0
commit 631ac34573
4 changed files with 52 additions and 53 deletions

View File

@@ -2,7 +2,7 @@
const bhttp = require('bhttp');
const { scrapeAll, scrapeScene, fetchProfile } = require('./gamma');
const { fetchLatest, fetchUpcoming, scrapeScene, fetchProfile } = require('./gamma');
async function fetchScene(url, site) {
// const res = await bhttp.get(url);
@@ -21,18 +21,6 @@ async function fetchScene(url, site) {
return release;
}
async function fetchLatest(site, page = 1) {
const res = await bhttp.get(`https://www.blowpass.com/en/videos/${site.slug}/latest/All-Categories/0/All-Pornstars/0/${page}`);
return scrapeAll(res.body.toString(), site);
}
async function fetchUpcoming(site) {
const res = await bhttp.get(`https://www.blowpass.com/en/videos/${site.slug}/upcoming`);
return scrapeAll(res.body.toString(), site);
}
module.exports = {
fetchLatest,
fetchProfile,