Added AnalVids, Porn World and Private affiliate links.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user