Updated all dependencies. Updated MindGeek to Aylo.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
/* eslint-disable max-len */
|
||||
const omit = require('object.omit');
|
||||
|
||||
const upsert = require('../src/utils/upsert');
|
||||
|
||||
const grandParentNetworks = [
|
||||
@@ -13,9 +15,11 @@ const grandParentNetworks = [
|
||||
name: 'Hush',
|
||||
},
|
||||
{
|
||||
slug: 'mindgeek',
|
||||
name: 'Mind Geek',
|
||||
url: 'https://www.mindgeek.com',
|
||||
slug: 'aylo',
|
||||
name: 'Aylo',
|
||||
rename: 'mindgeek',
|
||||
alias: ['mindgeek', 'mind geek'],
|
||||
url: 'https://www.aylo.com',
|
||||
description: '',
|
||||
parameters: {
|
||||
interval: 1000,
|
||||
@@ -142,7 +146,7 @@ const networks = [
|
||||
slug: 'babes',
|
||||
name: 'Babes',
|
||||
url: 'https://www.babes.com',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'badoink',
|
||||
@@ -183,7 +187,7 @@ const networks = [
|
||||
name: 'Brazzers',
|
||||
url: 'https://www.brazzers.com',
|
||||
description: 'Brazzers homepage is updated daily with official HD porn scenes. Our hottest videos and sex series are filled with big tits, sexy milf, top pornstars and special events.',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
parameters: {
|
||||
childSession: true,
|
||||
},
|
||||
@@ -258,7 +262,7 @@ const networks = [
|
||||
actorPath: 'modelprofile',
|
||||
forceDeep: true, // Digital Playground has movie and series information not available in the latest updates API
|
||||
},
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'dogfartnetwork',
|
||||
@@ -303,7 +307,7 @@ const networks = [
|
||||
parameters: {
|
||||
actorPath: 'modelprofile',
|
||||
},
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'filthykings',
|
||||
@@ -460,14 +464,14 @@ const networks = [
|
||||
parameters: {
|
||||
actorPath: 'modelprofile',
|
||||
},
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'metrohd',
|
||||
name: 'Metro HD',
|
||||
url: 'https://www.metrohd.com',
|
||||
description: 'Checkout MetroHD official pornsite featuring top rated pornstars and XXX videos.',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'mikeadriano',
|
||||
@@ -479,7 +483,7 @@ const networks = [
|
||||
name: 'Mile High Media',
|
||||
url: 'https://www.milehighmedia.com',
|
||||
description: 'MileHighMedia.com is the only niche porn network you need! Watch lesbian sex, hardcore fucking and family porn stories with the hottest teens & MILFs!',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
parameters: {
|
||||
forceDeep: true, // Mile High Media has movie and series information not available in the latest updates API
|
||||
},
|
||||
@@ -494,7 +498,7 @@ const networks = [
|
||||
name: 'MOFOS',
|
||||
url: 'https://www.mofos.com',
|
||||
description: 'Check out the Official Mofos Network of best amateur pornsites. Girlfriend – voyeur - college girls - first anal & more. Bonus Milf sites for wifey lovers.',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'mylf',
|
||||
@@ -590,7 +594,7 @@ const networks = [
|
||||
name: 'Reality Kings',
|
||||
url: 'https://www.realitykings.com',
|
||||
description: 'Home of HD reality porn featuring the nicest tits and ass online! The hottest curvy girls in real amateur sex stories are only on REALITYkings.com',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
parameters: {
|
||||
childSession: true,
|
||||
parentSession: false,
|
||||
@@ -616,7 +620,7 @@ const networks = [
|
||||
slug: 'sexyhub',
|
||||
name: 'Sexy Hub',
|
||||
url: 'https://www.sexyhub.com',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'spizoo',
|
||||
@@ -672,7 +676,7 @@ const networks = [
|
||||
name: 'Twistys',
|
||||
url: 'https://www.twistys.com',
|
||||
description: 'The hottest high quality glamour porn for over 18 years! Over 3700+ models and 46000+ scenes. TWISTYS.com',
|
||||
parent: 'mindgeek',
|
||||
parent: 'aylo',
|
||||
},
|
||||
{
|
||||
slug: 'vipsexvault',
|
||||
@@ -742,7 +746,7 @@ exports.seed = (knex) => Promise.resolve()
|
||||
return null;
|
||||
}).filter(Boolean));
|
||||
|
||||
const grandParentNetworkEntries = await upsert('entities', grandParentNetworks.map((network) => ({ ...network, type: 'network' })), ['slug', 'type'], knex);
|
||||
const grandParentNetworkEntries = await upsert('entities', grandParentNetworks.map((network) => (omit({ ...network, type: 'network' }, 'rename'))), ['slug', 'type'], knex);
|
||||
const grandParentNetworksBySlug = [].concat(grandParentNetworkEntries.inserted, grandParentNetworkEntries.updated).reduce((acc, network) => ({ ...acc, [network.slug]: network.id }), {});
|
||||
|
||||
const parentNetworksWithGrandParent = parentNetworks.map((network) => ({
|
||||
|
||||
Reference in New Issue
Block a user