Added Vivid network. Added ASMR Fantasy to Adult Time. Storing deep URL in database. Added href to header links.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user