forked from DebaucheryLibrarian/traxxx
Removed affiliate table in favor of direct campaign URLs.
This commit is contained in:
@@ -116,7 +116,7 @@ const tags = [
|
||||
{
|
||||
name: 'anal',
|
||||
slug: 'anal',
|
||||
description: 'Getting your asshole fucked. Generally considered naughtier, you may or may not find it a pleasurable alternative to vaginal sex. Enjoyable anal sex tends to require practice and patience, a rectal douching ritual, as well and a generous use of water-based lubricant to ensure comfort and prevent small tears that could lead to bacterial infections. Although you cannot get pregnant through anal sex directly, there is an increased risk of passing STDs, so the use of condoms and regular health checks are strongly recommended.',
|
||||
description: 'Getting your asshole fucked. Generally considered naughtier, you may or may not find it a pleasurable alternative to vaginal sex.',
|
||||
priority: 9,
|
||||
group: 'penetration',
|
||||
},
|
||||
|
||||
@@ -1,33 +1,48 @@
|
||||
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: 'evilangel_728_90_adriana_chechik_gangbang',
|
||||
width: 728,
|
||||
height: 90,
|
||||
network: 'evilangel',
|
||||
tags: ['gangbang', 'airtight', 'dp', 'dvp', 'facial', 'brunette'],
|
||||
},
|
||||
{
|
||||
id: 'evilangel_728_90_kenzie_reeves_lexi_lore',
|
||||
width: 728,
|
||||
height: 90,
|
||||
network: 'evilangel',
|
||||
tags: ['anal', 'mff', 'blowjob', 'blonde'],
|
||||
},
|
||||
{
|
||||
id: 'evilangel_970_90_one_dollar',
|
||||
width: 970,
|
||||
height: 90,
|
||||
network: 'evilangel',
|
||||
tags: ['sex', 'mff'],
|
||||
},
|
||||
{
|
||||
id: 'hardx_770_76_anal',
|
||||
width: 770,
|
||||
height: 76,
|
||||
channel: 'hardx',
|
||||
tags: ['anal', 'blonde'],
|
||||
},
|
||||
{
|
||||
id: 'hardx_770_76_esperanza_anal',
|
||||
width: 770,
|
||||
height: 76,
|
||||
channel: 'hardx',
|
||||
tags: ['anal', 'brunette'],
|
||||
},
|
||||
{
|
||||
id: 'hardx_770_76_zoey_monroe_mff',
|
||||
width: 770,
|
||||
height: 76,
|
||||
channel: 'hardx',
|
||||
tags: ['sex', 'mff', 'blonde'],
|
||||
},
|
||||
{
|
||||
id: 'julesjordan_728_90_jill_kassidy',
|
||||
width: 728,
|
||||
@@ -84,102 +99,194 @@ const banners = [
|
||||
network: 'pornworld',
|
||||
tags: ['mfm', 'sex', 'brunette'],
|
||||
},
|
||||
{
|
||||
id: 'xempire_315_300',
|
||||
width: 315,
|
||||
height: 300,
|
||||
network: 'xempire',
|
||||
tags: ['blowbang', 'sex', 'black-cock', 'brunette'],
|
||||
},
|
||||
{
|
||||
id: 'xempire_970_90_mff',
|
||||
width: 970,
|
||||
height: 90,
|
||||
network: 'xempire',
|
||||
tags: ['mff', '69', 'brunette'],
|
||||
},
|
||||
];
|
||||
|
||||
const links = [
|
||||
const campaigns = [
|
||||
{
|
||||
network: 'julesjordan',
|
||||
affiliate: 'julesjordan_signup',
|
||||
network: 'evilangel',
|
||||
url: 'https://www.iyalc.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=',
|
||||
comment: 'per signup',
|
||||
},
|
||||
{
|
||||
network: 'evilangel',
|
||||
banner: 'evilangel_728_90_adriana_chechik_gangbang',
|
||||
url: 'https://www.iyalc.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=',
|
||||
comment: 'per signup',
|
||||
},
|
||||
{
|
||||
network: 'evilangel',
|
||||
banner: 'evilangel_728_90_kenzie_reeves_lexi_lore',
|
||||
url: 'https://www.iyalc.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=',
|
||||
comment: 'per signup',
|
||||
},
|
||||
{
|
||||
network: 'evilangel',
|
||||
banner: 'evilangel_970_90_one_dollar',
|
||||
url: 'https://www.iyalc.com/evilangel/go.php?pr=8&su=2&si=128&ad=277470&pa=index&ar=&buffer=',
|
||||
comment: 'per signup',
|
||||
},
|
||||
{
|
||||
channel: 'hardx',
|
||||
url: 'https://www.blazinglink.com/hardx/go.php?pr=12&su=2&si=68&pa=index&ar=&ad=277470',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
channel: 'hardx',
|
||||
banner: 'hardx_770_76_anal',
|
||||
url: 'https://www.blazinglink.com/hardx/go.php?pr=12&su=2&si=68&pa=index&ar=&ad=277470',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
channel: 'hardx',
|
||||
banner: 'hardx_770_76_esperanza_anal',
|
||||
url: 'https://www.blazinglink.com/hardx/go.php?pr=12&su=2&si=68&pa=index&ar=&ad=277470',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
channel: 'hardx',
|
||||
banner: 'hardx_770_76_zoey_monroe_mff',
|
||||
url: 'https://www.blazinglink.com/hardx/go.php?pr=12&su=2&si=68&pa=index&ar=&ad=277470',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'julesjordan',
|
||||
url: 'https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjAuMC4wLjA',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'julesjordan',
|
||||
affiliate: 'julesjordan_signup',
|
||||
banner: 'julesjordan_728_90_jill_kassidy',
|
||||
url: 'https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjAuMC4wLjA',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'julesjordan',
|
||||
affiliate: 'julesjordan_signup',
|
||||
banner: 'julesjordan_728_90_angela_white',
|
||||
url: 'https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjAuMC4wLjA',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'julesjordan',
|
||||
affiliate: 'julesjordan_signup',
|
||||
banner: 'julesjordan_728_90_adriana_chechik',
|
||||
url: 'https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjAuMC4wLjA',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'julesjordan',
|
||||
affiliate: 'julesjordan_signup',
|
||||
banner: 'julesjordan_728_90_autumn_falls',
|
||||
url: 'https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjAuMC4wLjA',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'julesjordan',
|
||||
affiliate: 'julesjordan_signup',
|
||||
banner: 'julesjordan_728_90_gabbie_carter',
|
||||
url: 'https://enter.julesjordan.com/track/Mzk3MS4yLjMuNi4wLjAuMC4wLjA',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
channel: 'manuelferrara',
|
||||
affiliate: 'manuelferrara_signup',
|
||||
url: 'https://enter.manuelferrara.com/track/Mzk3MS4yLjcuMTYuMC4wLjAuMC4w',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
channel: 'manuelferrara',
|
||||
affiliate: 'manuelferrara_signup',
|
||||
banner: 'manuelferrara_728_90_asses',
|
||||
url: 'https://enter.manuelferrara.com/track/Mzk3MS4yLjcuMTYuMC4wLjAuMC4w',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
channel: 'spermswallowers',
|
||||
affiliate: 'spermswallowers_signup',
|
||||
url: 'https://enter.spermswallowers.com/track/Mzk3MS4yLjUuMTMuMC4wLjAuMC4w',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
channel: 'theassfactory',
|
||||
affiliate: 'theassfactory_signup',
|
||||
url: 'https://enter.theassfactory.com/track/Mzk3MS4yLjEuMS4wLjAuMC4wLjA',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'legalporno',
|
||||
affiliate: 'legalporno_new',
|
||||
url: 'https://www.legalporno.com/new-videos?aff=BW90MHT1DP____',
|
||||
comment: 'default offer',
|
||||
},
|
||||
{
|
||||
channel: 'legalporno',
|
||||
affiliate: 'legalporno_new',
|
||||
banner: 'pornworld_600_120_1',
|
||||
url: 'https://www.legalporno.com/new-videos?aff=BW90MHT1DP____',
|
||||
comment: 'default offer',
|
||||
},
|
||||
{
|
||||
channel: 'legalporno',
|
||||
affiliate: 'legalporno_new',
|
||||
banner: 'pornworld_600_120_2',
|
||||
url: 'https://www.legalporno.com/new-videos?aff=BW90MHT1DP____',
|
||||
comment: 'default offer',
|
||||
},
|
||||
{
|
||||
network: 'pornworld',
|
||||
affiliate: 'pornworld_new',
|
||||
url: 'https://pornworld.com/new-videos?aff=BW90MHT1DP____',
|
||||
comment: 'default offer',
|
||||
},
|
||||
{
|
||||
network: 'pornworld',
|
||||
affiliate: 'pornworld_new',
|
||||
banner: 'pornworld_600_120_1',
|
||||
url: 'https://pornworld.com/new-videos?aff=BW90MHT1DP____',
|
||||
comment: 'default offer',
|
||||
},
|
||||
{
|
||||
network: 'pornworld',
|
||||
affiliate: 'pornworld_new',
|
||||
banner: 'pornworld_600_120_2',
|
||||
url: 'https://pornworld.com/new-videos?aff=BW90MHT1DP____',
|
||||
comment: 'default offer',
|
||||
},
|
||||
{
|
||||
network: 'xempire',
|
||||
url: 'https://www.blazinglink.com/xempire/go.php?pr=12&su=2&si=81&pa=index&ar=&ad=277470',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'xempire',
|
||||
banner: 'xempire_970_90_mff',
|
||||
url: 'https://www.blazinglink.com/xempire/go.php?pr=12&su=2&si=81&pa=index&ar=&ad=277470',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
{
|
||||
network: 'xempire',
|
||||
banner: 'xempire_315_300',
|
||||
url: 'https://www.blazinglink.com/xempire/go.php?pr=12&su=2&si=81&pa=index&ar=&ad=277470',
|
||||
comment: '$30 per signup',
|
||||
},
|
||||
];
|
||||
|
||||
exports.seed = async knex => Promise.resolve()
|
||||
.then(async () => {
|
||||
await knex('banners_tags').delete();
|
||||
|
||||
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)),
|
||||
.whereIn('slug', campaigns.concat(banners).map(link => link.network).filter(Boolean)),
|
||||
knex('entities')
|
||||
.where('type', 'channel')
|
||||
.whereIn('slug', links.concat(banners).map(link => link.channel).filter(Boolean)),
|
||||
.whereIn('slug', campaigns.concat(banners).map(link => link.channel).filter(Boolean)),
|
||||
knex('tags')
|
||||
.whereIn('slug', banners.flatMap(banner => banner.tags || [])),
|
||||
]);
|
||||
@@ -188,12 +295,6 @@ exports.seed = async knex => Promise.resolve()
|
||||
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,
|
||||
@@ -206,7 +307,15 @@ exports.seed = async knex => Promise.resolve()
|
||||
tag_id: tagsBySlug[tag].id,
|
||||
})) || []);
|
||||
|
||||
console.log(campaigns);
|
||||
|
||||
const campaignsWithEntityIdAndAffiliateId = campaigns.map(campaign => ({
|
||||
entity_id: networksBySlug[campaign.network]?.id || channelsBySlug[campaign.channel]?.id,
|
||||
url: campaign.url,
|
||||
banner_id: campaign.banner,
|
||||
})).filter(link => link.entity_id && link.url);
|
||||
|
||||
await bulkInsert('banners', bannersWithEntityId, false);
|
||||
await bulkInsert('banners_tags', bannerTags, false);
|
||||
await bulkInsert('campaigns', linksWithEntityIdAndAffiliateId, false);
|
||||
await bulkInsert('campaigns', campaignsWithEntityIdAndAffiliateId, false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user