Added Vixen scraper. Added LegalPorno studio IDs.

This commit is contained in:
2019-04-01 02:45:15 +02:00
parent d7ef14e427
commit 439d3225ec
8 changed files with 122 additions and 34 deletions

View File

@@ -5,7 +5,7 @@ const bhttp = require('bhttp');
const cheerio = require('cheerio');
const moment = require('moment');
const tagMap = {};
const { matchTags } = require('../tags');
function scrapeLatest(html, site) {
const $ = cheerio.load(html, { normalizeWhitespace: true });

View File

@@ -5,6 +5,7 @@ const julesjordan = require('./julesjordan');
const kink = require('./kink');
const legalporno = require('./legalporno');
const pervcity = require('./pervcity');
const vixen = require('./vixen');
module.exports = {
xempire,
@@ -12,4 +13,5 @@ module.exports = {
kink,
legalporno,
pervcity,
vixen,
};

View File

@@ -8,7 +8,7 @@ const { matchTags } = require('../tags');
function extractTitle(originalTitle) {
const titleComponents = originalTitle.split(' ');
const sceneIdMatch = titleComponents.slice(-1)[0].match(/(GP|SZ|IV|GIO|AA|GL|BZ|FS)\d+/); // detect studio prefixes
const sceneIdMatch = titleComponents.slice(-1)[0].match(/(GP|SZ|IV|GIO|RS|TW|MA|FM|SAL|NR|AA|GL|BZ|FS)\d+/); // detect studio prefixes
const shootId = sceneIdMatch ? sceneIdMatch[0] : null;
const title = sceneIdMatch ? titleComponents.slice(0, -1).join(' ') : originalTitle;