Renamed LegalPorno to AnalVids, added missing studios.

This commit is contained in:
DebaucheryLibrarian
2022-02-24 23:28:24 +01:00
parent 4a9c428d69
commit 17dfeac1af
27 changed files with 2969 additions and 725 deletions

View File

@@ -34,13 +34,13 @@ function getPoster(posterElement, sceneId) {
if (typeof posterTimeRange === 'number') {
// poster time is already a single time value
return `https://legalporno.com/casting/${sceneId}/${posterTimeRange}`;
return `https://analvids.com/casting/${sceneId}/${posterTimeRange}`;
}
const [max, min] = posterTimeRange.split('-');
const posterTime = Math.floor(Math.random() * (Number(max) - Number(min) + 1) + Number(min));
return `https://legalporno.com/casting/${sceneId}/${posterTime}`;
return `https://analvids.com/casting/${sceneId}/${posterTime}`;
}
function scrapeAll(html) {
@@ -134,7 +134,7 @@ async function scrapeScene(html, url, site, useGallery) {
}
const studioName = $('.watchpage-studioname').first().text().trim();
release.studio = slugify(studioName, '');
release.studio = slugify(studioName, '', { removePunctuation: true });
return release;
}
@@ -181,7 +181,7 @@ async function fetchScene(url, site) {
}
async function fetchProfile({ name: actorName }) {
const res = await http.get(`https://www.legalporno.com/api/autocomplete/search?q=${actorName.replace(' ', '+')}`);
const res = await http.get(`https://www.analvids.com/api/autocomplete/search?q=${actorName.replace(' ', '+')}`);
const data = res.body;
const result = data.terms.find((item) => item.type === 'model');

View File

@@ -35,7 +35,7 @@ const karups = require('./karups');
const kellymadison = require('./kellymadison');
const killergram = require('./killergram');
const kink = require('./kink');
const legalporno = require('./legalporno');
const analvids = require('./analvids');
const littlecapricedreams = require('./littlecapricedreams');
const mikeadriano = require('./mikeadriano');
const mindgeek = require('./mindgeek');
@@ -118,7 +118,7 @@ const scrapers = {
killergram,
kink,
kinkvr: badoink,
legalporno,
analvids,
letsdoeit: porndoe,
littlecapricedreams,
mamacitaz: porndoe,
@@ -230,7 +230,7 @@ const scrapers = {
killergram,
kink,
kinkvr: badoink,
legalporno,
analvids,
letsdoeit: porndoe,
littlecapricedreams,
mamacitaz: porndoe,

1721
src/tools/analvids.js Normal file

File diff suppressed because it is too large Load Diff