Added rudimentary affiliate banner setup. Separated login and signup disable. Added various tag photos.

This commit is contained in:
DebaucheryLibrarian
2021-06-28 00:05:24 +02:00
parent d1480da076
commit eb7009832a
61 changed files with 548 additions and 17 deletions

View File

@@ -223,6 +223,11 @@ const tags = [
slug: 'bisexual',
priority: 10,
},
{
name: 'black cock',
slug: 'black-cock',
group: 'body',
},
{
name: 'black hair',
slug: 'black-hair',
@@ -1022,6 +1027,11 @@ const tags = [
priority: 7,
group: 'ethnicity',
},
{
name: 'white cock',
slug: 'white-cock',
group: 'body',
},
{
name: 'wife',
slug: 'wife',

View File

@@ -607,9 +607,10 @@ const tagMedia = [
['airtight', 9, 'Cindy Shine in GP1658'],
['anal', 5, 'Abella Danger', 'hardx'],
['anal', 'kira_noir_julesjordan', 'Kira Noir in "Kira Noir Opens Her Ass For Manuel"', 'julesjordan'],
['anal', 7, 'Anastasia Brokelyn', 'bangbros'],
['anal', 'jane_wilde_evilangel_2', 'Jane Wilde and Brock Cooper in "The Cock Hungry Chronicles"', 'evilangel'],
['anal', 0, 'Adriana Chechik in "Manuel Creampies Their Asses 3"', 'julesjordan'],
['anal', 'nikki_benz_bigwetbutts', 'Nikki Benz in "Pantyhose Playtime"', 'bigwetbutts'],
['anal', 7, 'Anastasia Brokelyn', 'bangbros'],
['anal', 6, 'Chloe Cherry in "Chloe\'s Big Anal"', 'darkx'],
['anal', 4, 'Lana Roy in "Anal In The Club"', '21naturals'],
['anal', 3, 'Dakota Skye', 'brazzers'],
@@ -650,6 +651,7 @@ const tagMedia = [
['blonde', 2, 'Isabelle Deltore', 'herlimit'],
['blowbang', 0, 'Lacy Lennon in "Lacy Lennon\'s First Blowbang"', 'hardx'],
['blowbang', 'zaawaadi_roccosiffredi_1', 'Zaawaadi in "My Name Is Zaawaadi"', 'roccosiffredi'],
['blowbang', 'gina_gerson_assholefever', 'Gina Gerson in "Oppa Gangbang Style"', 'assholefever'],
['blowbang', 1, 'Nicole Black in GIO1680', 'legalporno'],
['blowjob', 'clanddi_jinkcego_ddfbusty_1', 'Clanddi Jinkcego', 'ddfbusty'],
['blowjob', 4, 'Chloe Cherry in "Chloe\'s Big Anal"', 'darkx'],
@@ -813,6 +815,7 @@ const tagMedia = [
['fake-cum', 2, 'Mimi Allen', 'fuckedupfacials'],
['fake-cum', 3, 'Alexia Anders in "Thanksgiving Creampies"', 'cum4k'],
['fake-cum', 0, 'Jynx Maze in "Showering Slut Gets Sludged"', 'cumshotsurprise'],
['fake-cum', 'franceska_le_fortyozbounce', 'Franceska Le and Luscious Lopez', 'fortyozbounce'],
['fake-cum', 1, 'Ricki White', 'fuckedupfacials'],
['fake-cum', 4, 'Vina Sky in "Creaming Her Pipes"', 'anal4k'],
['family', 0, 'Teanna Trump in "A Family Appear: Part One"', 'brazzers'],
@@ -828,6 +831,7 @@ const tagMedia = [
['gangbang', 'kristen_scott_julesjordan', 'Kristen Scott in "Interracial Gangbang!"', 'julesjordan'],
['gangbang', 'lara_frost_legalporno_1', 'Lara Frost in NRX070', 'legalporno'],
['gangbang', 7, 'Alexa Flexy in GL376', 'legalporno'],
['gangbang', 'gina_gerson_assholefever', 'Gina Gerson in "Oppa Gangbang Style"', 'assholefever'],
['gangbang', 0, '"4 On 1 Gangbangs"', 'doghousedigital'],
['gangbang', 4, 'Marley Brinx in "The Gangbang of Marley Brinx"', 'julesjordan'],
['gangbang', 1, 'Ginger Lynn in "Gangbang Mystique", a photoset shot by Suze Randall, 1984. Depicting a woman \'airtight\' pushed the boundaries of pornography at the time.'],
@@ -851,6 +855,7 @@ const tagMedia = [
['lesbian', 0, 'Jenna Sativa and Alina Lopez in "Opposites Attract"', 'girlgirl'],
['maid', 0, 'Whitney Wright in "Dredd Up Your Ass 2"', 'julesjordan'],
['maid', 1, 'Alessandra Jane', 'brazzers'],
['milf', 'nikki_benz_bigwetbutts', 'Nikki Benz in "Pantyhose Playtime"', 'bigwetbutts'],
['milf', 'silvia_saige_ddfnetwork', 'Silvia Saige', 'pornworld'],
['milf', 2, 'Shalina Devine', 'analmom'],
['milf', 1, 'Francesca Le', 'evilangel'],
@@ -861,6 +866,7 @@ const tagMedia = [
['mfm', 0, 'Vina Sky in "Jules Jordan\'s Three Ways"', 'julesjordan'],
['mfm', 8, 'Ariana Marie in "DP Masters 7"', 'julesjordan'],
['mfm', 1, 'Lana Rhoades in "Gangbang Me 3"', 'hardx'],
['mfm', 'franceska_jaimes_digitalplayground', 'Franceska Jaimes in "Monarch"', 'digitalplayground'],
['mfm', 'hazel_moore_legalporno', 'Hazel Moore', 'legalporno'],
['mfm', 7, 'Rose Valerie', 'eurosexparties'],
['mfm', 6, 'Honey Gold in "Slut Puppies 12"', 'julesjordan'],
@@ -940,6 +946,7 @@ const tagMedia = [
['toys', 1, 'Chloe Lamour in "Curives In All The Right Places"', 'wetandpuffy'],
['toys', 'shawna_lenee_sunrisekings', 'Shawna Lenee', 'sunrisekings'],
['trainbang', 'poster', 'Kali Roses in "Passing Me Around"', 'blacked'],
['trainbang', 'gina_gerson_assholefever', 'Gina Gerson in "Oppa Gangbang Style"', 'assholefever'],
['vr', 0, 'Michelle H', 'metart'],
['vr', '1a', 'Jenna Fox and Tommy Pistol in "Virtual Reality Jenna Fox Fucks So Real"', 'bangbros'],
['white', 2, 'Kenzie Reeves', 'bang'],

212
seeds/06_affiliates.js Normal file
View File

@@ -0,0 +1,212 @@
const bulkInsert = require('../src/utils/bulk-insert');
const affiliates = {
julesjordan_signup: {
url: 'https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjAuMC4wLjA',
comment: '$30 per signup',
},
manuelferrara_signup: {
url: 'https://enter.manuelferrara.com/track/Mzk3MS4yLjcuMTYuMC4wLjAuMC4w',
comment: '$30 per signup',
},
spermswallowers_signup: {
url: 'https://enter.spermswallowers.com/track/Mzk3MS4yLjUuMTMuMC4wLjAuMC4w',
comment: '$30 per signup',
},
theassfactory_signup: {
url: 'https://enter.theassfactory.com/track/Mzk3MS4yLjEuMS4wLjAuMC4wLjA',
comment: '$30 per signup',
},
legalporno_new: {
url: 'https://www.legalporno.com/new-videos?aff=BW90MHT1DP____',
comment: 'default offer',
},
pornworld_new: {
url: 'https://pornworld.com/new-videos?aff=BW90MHT1DP____',
comment: 'default offer',
},
};
const banners = [
{
id: 'julesjordan_728_90_jill_kassidy',
width: 728,
height: 90,
network: 'julesjordan',
tags: ['sex', 'blowjob', 'black-cock', 'brunette'],
},
{
id: 'julesjordan_728_90_angela_white',
width: 728,
height: 90,
network: 'julesjordan',
tags: ['sex', 'black-cock', 'brunette'],
},
{
id: 'julesjordan_728_90_adriana_chechik',
width: 728,
height: 90,
network: 'julesjordan',
tags: ['anal', 'black-cock', 'brunette'],
},
{
id: 'julesjordan_728_90_autumn_falls',
width: 728,
height: 90,
network: 'julesjordan',
tags: ['sex', 'big-boobs', 'brunette'],
},
{
id: 'julesjordan_728_90_gabbie_carter',
width: 728,
height: 90,
network: 'julesjordan',
tags: ['sex', 'blowjob', 'big-boobs', 'brunette'],
},
{
id: 'manuelferrara_728_90_asses',
width: 728,
height: 90,
channel: 'manuelferrara',
tags: ['big-butt'],
},
{
id: 'pornworld_600_120_1',
width: 600,
height: 120,
network: 'pornworld',
tags: ['anal', 'brunette'],
},
{
id: 'pornworld_600_120_2',
width: 600,
height: 120,
network: 'pornworld',
tags: ['mfm', 'sex', 'brunette'],
},
];
const links = [
{
network: 'julesjordan',
affiliate: 'julesjordan_signup',
},
{
network: 'julesjordan',
affiliate: 'julesjordan_signup',
banner: 'julesjordan_728_90_jill_kassidy',
},
{
network: 'julesjordan',
affiliate: 'julesjordan_signup',
banner: 'julesjordan_728_90_angela_white',
},
{
network: 'julesjordan',
affiliate: 'julesjordan_signup',
banner: 'julesjordan_728_90_adriana_chechik',
},
{
network: 'julesjordan',
affiliate: 'julesjordan_signup',
banner: 'julesjordan_728_90_autumn_falls',
},
{
network: 'julesjordan',
affiliate: 'julesjordan_signup',
banner: 'julesjordan_728_90_gabbie_carter',
},
{
channel: 'manuelferrara',
affiliate: 'manuelferrara_signup',
},
{
channel: 'manuelferrara',
affiliate: 'manuelferrara_signup',
banner: 'manuelferrara_728_90_asses',
},
{
channel: 'spermswallowers',
affiliate: 'spermswallowers_signup',
},
{
channel: 'theassfactory',
affiliate: 'theassfactory_signup',
},
{
network: 'legalporno',
affiliate: 'legalporno_new',
},
{
channel: 'legalporno',
affiliate: 'legalporno_new',
banner: 'pornworld_600_120_1',
},
{
channel: 'legalporno',
affiliate: 'legalporno_new',
banner: 'pornworld_600_120_2',
},
{
network: 'pornworld',
affiliate: 'pornworld_new',
},
{
network: 'pornworld',
affiliate: 'pornworld_new',
banner: 'pornworld_600_120_1',
},
{
network: 'pornworld',
affiliate: 'pornworld_new',
banner: 'pornworld_600_120_2',
},
];
exports.seed = async knex => Promise.resolve()
.then(async () => {
await Promise.all([
knex('campaigns').delete(),
knex('affiliates').delete(),
knex('banners').delete(),
]);
await bulkInsert('affiliates', Object.entries(affiliates).map(([key, value]) => ({ id: key, ...value })), false);
const [networks, channels, tags] = await Promise.all([
knex('entities')
.where('type', 'network')
.whereIn('slug', links.concat(banners).map(link => link.network).filter(Boolean)),
knex('entities')
.where('type', 'channel')
.whereIn('slug', links.concat(banners).map(link => link.channel).filter(Boolean)),
knex('tags')
.whereIn('slug', banners.flatMap(banner => banner.tags || [])),
]);
const networksBySlug = networks.reduce((acc, network) => ({ ...acc, [network.slug]: network }), {});
const channelsBySlug = channels.reduce((acc, channel) => ({ ...acc, [channel.slug]: channel }), {});
const tagsBySlug = tags.reduce((acc, tag) => ({ ...acc, [tag.slug]: tag }), {});
const linksWithEntityIdAndAffiliateId = links.map(link => ({
entity_id: networksBySlug[link.network]?.id || channelsBySlug[link.channel]?.id,
affiliate_id: link.affiliate,
banner_id: link.banner,
})).filter(link => link.entity_id && link.affiliate_id);
const bannersWithEntityId = banners.map(banner => ({
id: banner.id,
width: banner.width,
height: banner.height,
entity_id: networksBySlug[banner.network]?.id || channelsBySlug[banner.channel]?.id || null,
}));
const bannerTags = banners.flatMap(banner => banner.tags?.map(tag => ({
banner_id: banner.id,
tag_id: tagsBySlug[tag].id,
})) || []);
await bulkInsert('banners', bannersWithEntityId, false);
await bulkInsert('banners_tags', bannerTags, false);
await bulkInsert('campaigns', linksWithEntityIdAndAffiliateId, false);
});