Added Vivid network. Added ASMR Fantasy to Adult Time. Storing deep URL in database. Added href to header links.

This commit is contained in:
2020-02-11 04:58:18 +01:00
parent 114e2e03b2
commit dd6a1d9bfd
44 changed files with 1322 additions and 35 deletions

View File

@@ -259,6 +259,18 @@ async function storeActor(actor, scraped = false, scrapeSuccess = false) {
await storeSocialLinks(actor.social, actorEntry.id);
if (actor.avatars) {
await createMediaDirectory('actors', `${actorEntry.slug}/`);
await storePhotos(actor.avatars, {
domain: 'actor',
role: 'photo',
primaryRole: 'avatar',
targetId: actorEntry.id,
subpath: `${actorEntry.slug}/`,
naming: 'timestamp',
}, actorEntry.name);
}
logger.info(`Added new entry for actor '${actor.name}'`);
return actorEntry;
@@ -425,17 +437,7 @@ async function scrapeActors(actorNames) {
return profile;
}
const newActorEntry = await storeActor(profile, true, true);
await createMediaDirectory('actors', `${newActorEntry.slug}/`);
await storePhotos(profile.avatars, {
domain: 'actor',
role: 'photo',
primaryRole: 'avatar',
targetId: newActorEntry.id,
subpath: `${newActorEntry.slug}/`,
naming: 'timestamp',
}, newActorEntry.name);
await storeActor(profile, true, true);
}
return profile;