forked from DebaucheryLibrarian/traxxx
Added profile scraping in try/catch block. Re-added boobs enhanced info to actor page.
This commit is contained in:
parent
31a8f1cac1
commit
de36ed97e4
|
@ -73,12 +73,12 @@
|
|||
|
||||
<li v-if="actor.bust || actor.waist || actor.hip">
|
||||
<dfn class="bio-heading">Measurements</dfn>
|
||||
<span>{{ actor.bust || '??' }}-{{ actor.waist || '??' }}-{{ actor.hip || '??' }}</span>
|
||||
<span>{{ actor.bust || '??' }}-{{ actor.waist || '??' }}-{{ actor.hip || '??' }} <span v-if="actor.naturalBoobs !== undefined">({{ actor.naturalBoobs ? 'Natural' : 'Enhanced' }})</span></span>
|
||||
</li>
|
||||
|
||||
<li v-if="actor.social && actor.social.length > 0">
|
||||
<dfn class="bio-heading">Social</dfn>
|
||||
<span v-for="social in actor.social">{{ social }}</span>
|
||||
{{ actor.social.join(',') }}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -183,6 +183,7 @@ function mergeProfiles(profiles, actor) {
|
|||
|
||||
async function scrapeActors(actorNames) {
|
||||
await Promise.map(actorNames || argv.actors, async (actorName) => {
|
||||
try {
|
||||
const actorSlug = actorName.toLowerCase().replace(/\s+/g, '-');
|
||||
|
||||
const actorEntry = await knex('actors').where({ slug: actorSlug }).first();
|
||||
|
@ -216,6 +217,9 @@ async function scrapeActors(actorNames) {
|
|||
|
||||
await createActorMediaDirectory(profile, newActorEntry);
|
||||
await storeAvatars(profile, newActorEntry);
|
||||
} catch (error) {
|
||||
console.warn(actorName, error);
|
||||
}
|
||||
}, {
|
||||
concurrency: 3,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue