forked from DebaucheryLibrarian/traxxx
Added gender indicator to actor tiles. Fixed PornHub scraper fetching default avatars.
This commit is contained in:
@@ -45,7 +45,7 @@ async function scrapeProfile(html, _url, actorName) {
|
||||
if (bio.Piercings) profile.hasPiercings = bio.Piercings === 'Yes';
|
||||
if (bio.Tattoos) profile.hasTattoos = bio.Tattoos === 'Yes';
|
||||
|
||||
if (avatarEl) profile.avatar = avatarEl.src;
|
||||
if (avatarEl && !/default\//.test(avatarEl.src)) profile.avatar = avatarEl.src;
|
||||
profile.social = Array.from(document.querySelectorAll('.socialList a'), el => el.href).filter(link => link !== 'https://www.twitter.com/'); // PH links to Twitter itself for some reason
|
||||
|
||||
return profile;
|
||||
|
||||
Reference in New Issue
Block a user