forked from DebaucheryLibrarian/traxxx
Deriving transsexual tag from actors in Evil Angel scraper.
This commit is contained in:
parent
0e784a274f
commit
f7f5e8a306
|
@ -31,6 +31,10 @@ exports.seed = knex => Promise.resolve()
|
||||||
slug: 'location',
|
slug: 'location',
|
||||||
group: 'Location',
|
group: 'Location',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
slug: 'orientation',
|
||||||
|
group: 'Orientation',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
slug: 'penetration',
|
slug: 'penetration',
|
||||||
group: 'Penetration',
|
group: 'Penetration',
|
||||||
|
@ -171,6 +175,11 @@ exports.seed = knex => Promise.resolve()
|
||||||
alias_for: null,
|
alias_for: null,
|
||||||
group_id: groupsMap['body'],
|
group_id: groupsMap['body'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'bisexual',
|
||||||
|
slug: 'bisexual',
|
||||||
|
alias_for: null,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'black hair',
|
name: 'black hair',
|
||||||
slug: 'black-hair',
|
slug: 'black-hair',
|
||||||
|
@ -388,6 +397,11 @@ exports.seed = knex => Promise.resolve()
|
||||||
slug: 'gaping',
|
slug: 'gaping',
|
||||||
alias_for: null,
|
alias_for: null,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'gay',
|
||||||
|
slug: 'gay',
|
||||||
|
alias_for: null,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'gonzo',
|
name: 'gonzo',
|
||||||
slug: 'gonzo',
|
slug: 'gonzo',
|
||||||
|
@ -854,6 +868,10 @@ exports.seed = knex => Promise.resolve()
|
||||||
name: 'big tits',
|
name: 'big tits',
|
||||||
alias_for: tagsMap['big-boobs'],
|
alias_for: tagsMap['big-boobs'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'bi',
|
||||||
|
alias_for: tagsMap['bisexual'],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'black',
|
name: 'black',
|
||||||
alias_for: tagsMap['ebony'],
|
alias_for: tagsMap['ebony'],
|
||||||
|
|
|
@ -63,6 +63,7 @@ async function scrapeScene(html, url, site) {
|
||||||
const date = moment.utc($('.updatedDate').first().text(), 'MM-DD-YYYY').toDate();
|
const date = moment.utc($('.updatedDate').first().text(), 'MM-DD-YYYY').toDate();
|
||||||
|
|
||||||
const actors = data.actor.map(actor => actor.name);
|
const actors = data.actor.map(actor => actor.name);
|
||||||
|
const hasTrans = data.actor.some(actor => actor.gender === 'shemale');
|
||||||
|
|
||||||
const director = (data.director && data.director[0].name) || (data2.director && data2.director[0].name) || null;
|
const director = (data.director && data.director[0].name) || (data2.director && data2.director[0].name) || null;
|
||||||
const stars = (data.aggregateRating.ratingValue / data.aggregateRating.bestRating) * 5;
|
const stars = (data.aggregateRating.ratingValue / data.aggregateRating.bestRating) * 5;
|
||||||
|
@ -70,7 +71,11 @@ async function scrapeScene(html, url, site) {
|
||||||
const duration = moment.duration(data.duration.slice(2).split(':')).asSeconds();
|
const duration = moment.duration(data.duration.slice(2).split(':')).asSeconds();
|
||||||
|
|
||||||
const rawTags = data.keywords.split(', ');
|
const rawTags = data.keywords.split(', ');
|
||||||
const tags = await matchTags(rawTags);
|
const tags = await matchTags(
|
||||||
|
hasTrans
|
||||||
|
? [...rawTags, 'transsexual']
|
||||||
|
: rawTags,
|
||||||
|
);
|
||||||
|
|
||||||
const poster = videoData.picPreview;
|
const poster = videoData.picPreview;
|
||||||
const trailer = `${videoData.playerOptions.host}${videoData.url}`;
|
const trailer = `${videoData.playerOptions.host}${videoData.url}`;
|
||||||
|
|
Loading…
Reference in New Issue