Compare commits

..

No commits in common. "769e7bb37e1e294b84be3e6e40530935f72afeeb" and "9c00216e626450b52d4cac6c360807a85596d344" have entirely different histories.

3 changed files with 7 additions and 9 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.65.1", "version": "1.65.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.65.1", "version": "1.65.0",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -138,13 +138,11 @@ function scrapeProfile(data, html) {
if (data.height) profile.height = inchesToCm(data.height); if (data.height) profile.height = inchesToCm(data.height);
if (data.weight) profile.weight = lbsToKg(data.weight); if (data.weight) profile.weight = lbsToKg(data.weight);
if (data.images.card_main_rect && data.images.card_main_rect[0]) { profile.avatar = data.images.card_main_rect?.[0].xl?.url
profile.avatar = data.images.card_main_rect[0].xl?.url || data.images.card_main_rect?.[0].lg?.url
|| data.images.card_main_rect[0].lg?.url || data.images.card_main_rect?.[0].md?.url
|| data.images.card_main_rect[0].md?.url || data.images.card_main_rect?.[0].sm?.url
|| data.images.card_main_rect[0].sm?.url || data.images.card_main_rect?.[0].xs?.url;
|| data.images.card_main_rect[0].xs?.url;
}
const birthdate = qa('li').find(el => /Date of Birth/.test(el.textContent)); const birthdate = qa('li').find(el => /Date of Birth/.test(el.textContent));
if (birthdate) profile.birthdate = qd(birthdate, 'span', 'MMMM Do, YYYY'); if (birthdate) profile.birthdate = qd(birthdate, 'span', 'MMMM Do, YYYY');