Moved Killergram to Aylo. Added profile tests.

This commit is contained in:
DebaucheryLibrarian
2026-01-12 01:31:30 +01:00
parent 1a2bf77692
commit db62652dc8
9 changed files with 52 additions and 140 deletions

View File

@@ -108,7 +108,7 @@ function scrapeProfile({ query }, entity) {
profile.url = unprint.prefixUrl(data.url, entity.url);
profile.dateOfBirth = unprint.extractDate(data.birthDate, 'MMMM DD, YYYY');
profile.birthPlace = data.nationality; // origin country rather than nationality
profile.birthPlace = data.nationality?.name || data.nationality; // origin country rather than nationality
// height and weight are provided in both cm and lbs, but this seems to be a manual conversion; the format isn't always the same
profile.height = unprint.extractNumber(data.height, { match: /(\d+)\s*cm/, matchIndex: 1 });