forked from DebaucheryLibrarian/traxxx
Fixed undefined location in FreeOnes scraper.
This commit is contained in:
@@ -37,7 +37,9 @@ function scrapeProfile(html, actorName) {
|
||||
|
||||
if (bio.dateOfBirth) profile.birthdate = moment.utc(bio.dateOfBirth, 'YYYY-MM-DD').toDate();
|
||||
|
||||
if (profile.placeOfBirth || bio.country) profile.birthPlace = `${bio.placeOfBirth}, ${bio.country}`;
|
||||
if (profile.placeOfBirth && bio.country) profile.birthPlace = `${bio.placeOfBirth}, ${bio.country}`;
|
||||
else if (bio.country) profile.birthPlace = bio.country;
|
||||
|
||||
profile.eyes = bio.eyeColor;
|
||||
profile.hair = bio.hairColor;
|
||||
profile.ethnicity = bio.ethnicity;
|
||||
|
||||
Reference in New Issue
Block a user