Compare commits

...

2 Commits

Author SHA1 Message Date
ThePendulum 769e7bb37e 1.65.1 2020-01-29 02:31:58 +01:00
ThePendulum 81ede3f511 Improved MindGeek avatar fix. 2020-01-29 02:31:55 +01:00
3 changed files with 9 additions and 7 deletions

2
package-lock.json generated
View File

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

View File

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

View File

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