Added source maps. Fixed DDFNetwork avatar and improved photo fetch error handling.

This commit is contained in:
2019-12-10 00:30:55 +01:00
parent 04a89efa58
commit b6123b9418
9 changed files with 17 additions and 16 deletions

View File

@@ -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;
}