Added support for Family Strokes.
This commit is contained in:
@@ -6,15 +6,6 @@ const { JSDOM } = require('jsdom');
|
||||
const cheerio = require('cheerio');
|
||||
const moment = require('moment');
|
||||
|
||||
const { matchTags } = require('../tags');
|
||||
|
||||
const defaultTags = {
|
||||
swallowed: ['blowjob', 'deepthroat', 'facefuck'],
|
||||
trueanal: ['anal'],
|
||||
allanal: ['anal', 'fmf'],
|
||||
nympho: [],
|
||||
};
|
||||
|
||||
const descriptionTags = {
|
||||
'anal cream pie': 'anal creampie',
|
||||
'ass to mouth': 'ass to mouth',
|
||||
@@ -55,7 +46,7 @@ async function scrapeLatestA(html, site) {
|
||||
const actors = Array.from(element.querySelectorAll('h4.models a'), actorElement => actorElement.textContent);
|
||||
|
||||
const durationString = element.querySelector('.total-time').textContent.trim();
|
||||
// timestamp is somethines 00:00, sometimes 0:00:00
|
||||
// timestamp is sometimes 00:00, sometimes 0:00:00
|
||||
const duration = durationString.split(':').length === 3
|
||||
? moment.duration(durationString).asSeconds()
|
||||
: moment.duration(`00:${durationString}`).asSeconds();
|
||||
@@ -70,7 +61,7 @@ async function scrapeLatestA(html, site) {
|
||||
.map(photoUrl => photoUrl.slice(photoUrl.indexOf('http'), photoUrl.indexOf('.jpg') + 4));
|
||||
|
||||
const photos = [...primaryPhotos, ...secondaryPhotos];
|
||||
const tags = await matchTags([...defaultTags[site.slug], ...deriveTagsFromDescription(description)]);
|
||||
const tags = deriveTagsFromDescription(description);
|
||||
|
||||
const scene = {
|
||||
url,
|
||||
@@ -124,7 +115,7 @@ async function scrapeLatestB(html, site) {
|
||||
.map(photoUrl => photoUrl.slice(photoUrl.indexOf('http'), photoUrl.indexOf('.jpg') + 4));
|
||||
|
||||
const photos = [...primaryPhotos, ...secondaryPhotos];
|
||||
const tags = await matchTags([...defaultTags[site.slug], ...deriveTagsFromDescription(description)]);
|
||||
const tags = deriveTagsFromDescription(description);
|
||||
|
||||
return {
|
||||
url,
|
||||
@@ -155,7 +146,7 @@ async function scrapeSceneA(html, url, site) {
|
||||
const actors = Array.from(element.querySelectorAll('.models a'), actorElement => actorElement.textContent);
|
||||
|
||||
const durationString = element.querySelector('.total-time').textContent.trim();
|
||||
// timestamp is somethines 00:00, sometimes 0:00:00
|
||||
// timestamp is sometimes 00:00, sometimes 0:00:00
|
||||
const duration = durationString.split(':').length === 3
|
||||
? moment.duration(durationString).asSeconds()
|
||||
: moment.duration(`00:${durationString}`).asSeconds();
|
||||
@@ -163,7 +154,7 @@ async function scrapeSceneA(html, url, site) {
|
||||
const { poster } = document.querySelector('.content-page-header video');
|
||||
const { src, type } = document.querySelector('.content-page-header source');
|
||||
|
||||
const tags = await matchTags([...defaultTags[site.slug], ...deriveTagsFromDescription(description)]);
|
||||
const tags = deriveTagsFromDescription(description);
|
||||
|
||||
return {
|
||||
url,
|
||||
@@ -204,7 +195,7 @@ async function scrapeSceneB(html, url, site) {
|
||||
const { poster } = document.querySelector('.content-page-header-inner video');
|
||||
const { src, type } = document.querySelector('.content-page-header-inner source');
|
||||
|
||||
const tags = await matchTags([...defaultTags[site.slug], ...deriveTagsFromDescription(description)]);
|
||||
const tags = deriveTagsFromDescription(description);
|
||||
|
||||
const scene = {
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user