Fixed WankzVR profile scraper selecting height in feet/inches when requested from North American IP.

This commit is contained in:
DebaucheryLibrarian
2026-02-22 03:17:04 +01:00
parent cdb4644b42
commit 78e9088ee5

View File

@@ -171,7 +171,8 @@ async function scrapeProfile({ query }, url, entity, options) {
profile.birthPlace = bio.birthplace; 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.measurements = bio.measurements;
profile.avatar = query.sourceSet('.person__avatar img').map((src) => ({ profile.avatar = query.sourceSet('.person__avatar img').map((src) => ({