Added VogoV (no trailer yet). Fixed MindGeek profile scraper.

This commit is contained in:
2020-01-28 03:05:53 +01:00
parent 601196ddeb
commit 76852daf6d
12 changed files with 128 additions and 5 deletions

View File

@@ -194,10 +194,13 @@ async function fetchProfile(actorName, networkName, actorPath = 'model') {
if (res.statusCode === 200) {
const actorData = res.body.result.find(actor => actor.name.toLowerCase() === actorName.toLowerCase());
const actorRes = await bhttp.get(`https://www.${networkName}.com/${actorPath}/${actorData.id}/`);
if (actorData && actorRes.statusCode === 200) {
return scrapeProfile(actorData, actorRes.body.toString());
if (actorData) {
const actorRes = await bhttp.get(`https://www.${networkName}.com/${actorPath}/${actorData.id}/`);
if (actorRes.statusCode === 200) {
return scrapeProfile(actorData, actorRes.body.toString());
}
}
}