forked from DebaucheryLibrarian/traxxx
Redundant actor sources can now be bundled in configuration. Fixed Men network actor path.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const { fetchScene, fetchLatest, fetchProfile } = require('./mindgeek');
|
||||
|
||||
async function networkFetchProfile(actorName) {
|
||||
return fetchProfile(actorName, 'men');
|
||||
return fetchProfile(actorName, 'men', 'modelprofile');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -217,7 +217,8 @@ async function fetchProfile(actorName, networkName, actorPath = 'model') {
|
||||
const actorData = res.body.result.find(actor => actor.name.toLowerCase() === actorName.toLowerCase());
|
||||
|
||||
if (actorData) {
|
||||
const actorRes = await bhttp.get(`https://www.${networkName}.com/${actorPath}/${actorData.id}/`);
|
||||
const actorUrl = `https://www.${networkName}.com/${actorPath}/${actorData.id}/`;
|
||||
const actorRes = await bhttp.get(actorUrl);
|
||||
|
||||
if (actorRes.statusCode === 200) {
|
||||
return scrapeProfile(actorData, actorRes.body.toString());
|
||||
|
||||
Reference in New Issue
Block a user