forked from DebaucheryLibrarian/traxxx
Added tag page. Added default 'anal' tag to Vixen scraper for Tushy and Tushy Raw.
This commit is contained in:
@@ -7,6 +7,15 @@ const moment = require('moment');
|
||||
|
||||
const { matchTags } = require('../tags');
|
||||
|
||||
const defaultTags = {
|
||||
blacked: ['bbc'],
|
||||
blackedraw: ['bbc'],
|
||||
tushy: ['anal'],
|
||||
tushyraw: ['anal'],
|
||||
vixen: [],
|
||||
deeper: [],
|
||||
};
|
||||
|
||||
function scrapeLatest(html, site) {
|
||||
const $ = cheerio.load(html, { normalizeWhitespace: true });
|
||||
|
||||
@@ -73,7 +82,7 @@ async function scrapeScene(html, url, site) {
|
||||
} = scene;
|
||||
|
||||
const date = new Date(scene.releaseDate);
|
||||
const tags = await matchTags(rawTags);
|
||||
const tags = await matchTags([...defaultTags[site.slug], ...rawTags]);
|
||||
|
||||
return {
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user