Added missing image fallbacks to legacy Aziani scraper.

This commit is contained in:
DebaucheryLibrarian
2023-08-04 21:43:57 +02:00
parent 447c1d748a
commit 54dbea659a
5 changed files with 126 additions and 6 deletions

View File

@@ -5204,6 +5204,30 @@ const studios = [
parent: 'analvids',
description: 'Producing raw amateur porn leaded by Bluff, the creator, filmmaker and photographer. The models are from a circle of friends that creates and share all together. Through webcam nights, professionally made productions or from spontaneous projects, the general desire always was to produce high quality amateur porn. A wide variety of content is offered. *No custom video request *all models are 18+ and consented to appear in the photos/videos.',
},
// TESTE DE FUDELIDADE
{
name: 'Teste de Fudelidade Exclusivo',
slug: 'testedefudelidadeexclusivo',
parent: 'testedefudelidade',
},
{
name: 'Teste de Fudelidade - Produção Exclusiva',
slug: 'testedefudelidadeproducaoexclusiva',
parent: 'testedefudelidade',
showcased: true,
},
{
name: 'Gostosas Video',
slug: 'gostosasvideo',
parent: 'testedefudelidade',
showcased: true,
},
{
name: 'Brad Montana',
slug: 'bradmontana',
parent: 'testedefudelidade',
showcased: true,
},
].map((studio) => (studio.parent === 'analvids' && studio.showcased !== true
? {
...studio,
@@ -5215,6 +5239,7 @@ const studios = [
exports.seed = (knex) => Promise.resolve()
.then(async () => {
const networks = await knex('entities')
.whereIn('type', ['network', 'channel'])
.whereIn('slug', studios.map((studio) => studio.parent));
const networksMap = networks.reduce((acc, { id, slug }) => ({ ...acc, [slug]: id }), {});
@@ -5226,7 +5251,7 @@ exports.seed = (knex) => Promise.resolve()
type: 'studio',
parent_id: networksMap[studio.parent],
has_logo: studio.hasLogo || false,
showcased: studio.showcased,
showcased: typeof studio.showcased === 'boolean' ? studio.showcased : true,
}));
return upsert('entities', studiosWithNetwork, ['slug', 'type'], knex);