forked from DebaucheryLibrarian/traxxx
Fixed some Gamma scene scrapers.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
const { fetchScene, fetchLatest, fetchUpcoming, fetchProfile } = require('./gamma');
|
||||
|
||||
async function fetchSceneWrapper(url, site, baseRelease) {
|
||||
const release = await fetchScene(url, site, baseRelease);
|
||||
async function fetchSceneWrapper(url, site, baseRelease, options) {
|
||||
const release = await fetchScene(url, site, baseRelease, options);
|
||||
|
||||
if (site.isNetwork && release.channel) {
|
||||
const channelUrl = url.replace('blowpass.com', `${release.channel}.com`);
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
const { fetchLatest, fetchUpcoming, fetchScene } = require('./gamma');
|
||||
|
||||
|
||||
module.exports = {
|
||||
fetchLatest,
|
||||
fetchScene,
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
const { fetchLatest, fetchUpcoming, scrapeScene, fetchProfile } = require('./gamma');
|
||||
const http = require('../utils/http');
|
||||
|
||||
async function fetchScene(url, site) {
|
||||
async function fetchScene(url, site, baseRelease, options) {
|
||||
const res = await http.get(url);
|
||||
|
||||
const release = await scrapeScene(res.body.toString(), url, site);
|
||||
const release = await scrapeScene(res.body.toString(), url, site, baseRelease, null, options);
|
||||
|
||||
const siteDomain = release.$('meta[name="twitter:domain"]').attr('content') || 'allblackx.com'; // only AllBlackX has no twitter domain, no other useful hints available
|
||||
const siteSlug = siteDomain && siteDomain.split('.')[0].toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user