Fixed WankzVR profile scraper selecting height in feet/inches when requested from North American IP.
This commit is contained in:
@@ -171,7 +171,8 @@ async function scrapeProfile({ query }, url, entity, options) {
|
||||
|
||||
profile.birthPlace = bio.birthplace;
|
||||
|
||||
profile.height = parseInt(bio.height, 10);
|
||||
// height shown in imperial with cm between brackets when requested from North American IP, but only in cm for European IPs
|
||||
profile.height = unprint.extractNumber(bio.height, { match: /(\d+)cm/, matchIndex: 1 });
|
||||
profile.measurements = bio.measurements;
|
||||
|
||||
profile.avatar = query.sourceSet('.person__avatar img').map((src) => ({
|
||||
|
||||
Reference in New Issue
Block a user