forked from DebaucheryLibrarian/traxxx
Added source maps. Fixed DDFNetwork avatar and improved photo fetch error handling.
This commit is contained in:
@@ -149,7 +149,7 @@ async function scrapeProfile(html, _url, actorName) {
|
||||
if (bio['Shoe size']) profile.shoes = Number(bio['Shoe size'].split('|')[1]);
|
||||
|
||||
if (descriptionEl) profile.description = descriptionEl.textContent.trim();
|
||||
if (avatarEl) profile.avatar = `https:${avatarEl.dataset.src}`;
|
||||
if (avatarEl && avatarEl.dataset.src.match('^//')) profile.avatar = `https:${avatarEl.dataset.src}`;
|
||||
|
||||
return profile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user