2019-11-06 01:47:10 +00:00
|
|
|
const upsert = require('../src/utils/upsert');
|
|
|
|
|
|
|
|
function getStudios(networksMap) {
|
|
|
|
return [
|
|
|
|
// LegalPorno
|
|
|
|
{
|
|
|
|
slug: 'gonzocom',
|
|
|
|
name: 'Gonzo.com',
|
|
|
|
url: 'https://www.legalporno.com/studios/gonzo_com',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'giorgiograndi',
|
|
|
|
name: 'Giorgio Grandi',
|
|
|
|
url: 'https://www.legalporno.com/studios/giorgio-grandi',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'hardpornworld',
|
|
|
|
name: 'Hard Porn World',
|
|
|
|
url: 'https://www.legalporno.com/studios/hard-porn-world',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'interracialvision',
|
|
|
|
name: 'Interracial Vision',
|
|
|
|
url: 'https://www.legalporno.com/studios/interracial-vision',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'giorgioslab',
|
|
|
|
name: 'Giorgio\'s Lab',
|
|
|
|
url: 'https://www.legalporno.com/studios/giorgio--s-lab',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'americananal',
|
|
|
|
name: 'American Anal',
|
|
|
|
url: 'https://www.legalporno.com/studios/american-anal',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'assablanca',
|
|
|
|
name: 'Assablanca',
|
|
|
|
url: 'https://www.legalporno.com/studios/assablanca',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'focus',
|
|
|
|
name: 'Focus',
|
|
|
|
url: 'https://www.legalporno.com/studios/focus',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'analforever',
|
|
|
|
name: 'Anal Forever',
|
|
|
|
url: 'https://www.legalporno.com/studios/anal-forever',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'gonzoinbrazil',
|
|
|
|
name: 'Gonzo in Brazil',
|
|
|
|
url: 'https://www.legalporno.com/studios/gonzo-in-brazil',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'mranal',
|
|
|
|
name: 'Mr Anal',
|
|
|
|
url: 'https://www.legalporno.com/studios/mr-anal',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'tarrawhite',
|
|
|
|
name: 'Tarra White',
|
|
|
|
url: 'https://www.legalporno.com/studios/tarra-white',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'sineplexsos',
|
|
|
|
name: 'Sineplex SOS',
|
|
|
|
url: 'https://www.legalporno.com/studios/sineplex-sos',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'fmodels',
|
|
|
|
name: 'F Models',
|
|
|
|
url: 'https://www.legalporno.com/studios/f-models',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'sineplexcz',
|
|
|
|
name: 'Sineplex CZ',
|
|
|
|
url: 'https://www.legalporno.com/studios/sineplex-cz',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'gg',
|
|
|
|
name: 'GG',
|
|
|
|
url: 'https://www.legalporno.com/studios/gg',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'firstgape',
|
|
|
|
name: 'First Gape',
|
|
|
|
url: 'https://www.legalporno.com/studios/first-gape',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'omargalantiproductions',
|
|
|
|
name: 'Omar Galanti Productions',
|
|
|
|
url: 'https://www.legalporno.com/studios/omar-galanti-productions',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'norestfortheass',
|
|
|
|
name: 'No Rest For The Ass',
|
|
|
|
url: 'https://www.legalporno.com/studios/no-rest-for-the-ass',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'hairygonzo',
|
|
|
|
name: 'Hairy Gonzo',
|
|
|
|
url: 'https://www.legalporno.com/studios/hairy-gonzo',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'sineplexclassic',
|
|
|
|
name: 'Sineplex Classic',
|
|
|
|
url: 'https://www.legalporno.com/studios/sineplex-classic',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'sinemale',
|
|
|
|
name: 'Sinemale',
|
|
|
|
url: 'https://www.legalporno.com/studios/sinemale',
|
2019-12-19 01:35:07 +00:00
|
|
|
network_id: networksMap.legalporno,
|
2019-11-06 01:47:10 +00:00
|
|
|
},
|
2020-04-08 12:50:43 +00:00
|
|
|
{
|
|
|
|
slug: 'outsidethestudio',
|
|
|
|
name: 'Outside The Studio',
|
|
|
|
url: 'https://www.legalporno.com/studios/outside-the-studio',
|
|
|
|
network_id: networksMap.legalporno,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'kinkysex',
|
|
|
|
name: 'Kinky Sex',
|
|
|
|
url: 'https://www.legalporno.com/studios/kinky-sex',
|
|
|
|
network_id: networksMap.legalporno,
|
|
|
|
},
|
2019-11-06 01:47:10 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2019-10-31 00:53:26 +00:00
|
|
|
/* eslint-disable max-len */
|
|
|
|
exports.seed = knex => Promise.resolve()
|
|
|
|
.then(async () => {
|
2019-12-19 01:35:07 +00:00
|
|
|
const networks = await knex('networks').select('*');
|
2019-10-31 00:53:26 +00:00
|
|
|
const networksMap = networks.reduce((acc, { id, slug }) => ({ ...acc, [slug]: id }), {});
|
|
|
|
|
2019-11-06 01:47:10 +00:00
|
|
|
const studios = getStudios(networksMap);
|
|
|
|
|
2019-12-19 01:35:07 +00:00
|
|
|
return upsert('studios', studios, 'slug', knex);
|
2019-10-31 00:53:26 +00:00
|
|
|
});
|