From 2e1b5561dd87ea35035489cf11c1a0da9c3689e9 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 2 Feb 2026 23:54:06 +0100 Subject: [PATCH] Added AnalVids, Porn World and Private affiliate links. --- seeds/06_affiliates.js | 33 +++++++++++++++++++++++++++++---- tests/profiles.js | 1 + 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/seeds/06_affiliates.js b/seeds/06_affiliates.js index add45c56..5fee34d5 100755 --- a/seeds/06_affiliates.js +++ b/seeds/06_affiliates.js @@ -706,6 +706,28 @@ const affiliates = [ prefixSlash: false, }, }, + // sexcash (analvids, private) + { + network: 'analvids', + parameters: { + query: 'aff=BW90MHT1DP', // supported + }, + comment: '50% rev share', + }, + { + network: 'private', + parameters: { + query: 'aff=BW90MHT1DP', // supported + }, + comment: '50% rev share', + }, + { + network: 'pornworld', + parameters: { + query: 'aff=BW90MHT1DP', // supported + }, + comment: '50% rev share', + }, // etc { network: 'bang', @@ -1021,9 +1043,12 @@ exports.seed = async (knex) => { const nameTags = banner.split(/-(.*)/)[1]?.split('_'); const tags = [...nameTags || [], ...bannerTags[banner] || []]; + const resolvedNetwork = network === 'banners' ? channel : network; + const resolvedChannel = network === 'banners' ? null : channel; + const affiliate = affiliates.find((aff) => aff.id === affiliateId) - || affiliates.find((aff) => aff.channel === channel) - || affiliates.find((aff) => aff.network === network); + || affiliates.find((aff) => aff.channel === resolvedChannel) + || affiliates.find((aff) => aff.network === resolvedNetwork); if (!affiliate) { console.warn('UNMATCHED AFFILIATE', file); @@ -1031,8 +1056,8 @@ exports.seed = async (knex) => { return { file, - network: network === 'banners' ? channel : network, - channel: network === 'banners' ? null : channel, + network: resolvedNetwork, + channel: resolvedChannel, affiliateId, affiliate: getAffiliateId(affiliate), banner, diff --git a/tests/profiles.js b/tests/profiles.js index 288b29b9..130a83fc 100644 --- a/tests/profiles.js +++ b/tests/profiles.js @@ -235,6 +235,7 @@ const actors = [ { entity: 'nebraskacoeds', name: 'Mary Beth Haglin', fields: ['avatar'] }, // sic { entity: 'firstanalquest', name: 'Abigaile Johnson', fields: ['avatar', 'dateOfBirth', 'birthPlace', 'weight', 'height', 'measurements'] }, // sic { entity: 'doubleviewcasting', name: 'Abigaile Johnson', fields: ['avatar', 'dateOfBirth', 'birthPlace', 'weight', 'height', 'measurements'] }, // sic + { entity: 'boobpedia', name: 'Paige British', fields: ['avatar'] }, // sic ]; const actorScrapers = scrapers.actors;