Updated profile scrapers to use base actor instead of actor name. Fixes for Reality Kings and Cherry Pimps scrapers.

This commit is contained in:
DebaucheryLibrarian
2020-07-21 01:44:51 +02:00
parent 939eba8e61
commit dff4d15872
46 changed files with 91 additions and 94 deletions

View File

@@ -100,8 +100,6 @@ async function scrapeProfile({ query }, url, include) {
profile.releases = await fetchActorReleases({ query }, url);
}
console.log(profile);
return profile;
}
@@ -117,7 +115,7 @@ async function fetchScene(url, channel) {
return res.ok ? scrapeScene(res.item, url, channel) : res.status;
}
async function fetchProfile(actorName, entity, include) {
async function fetchProfile({ name: actorName }, entity, include) {
const url = `http://letsdoeit.com/models/${slugify(actorName)}.en.html`;
const res = await qu.get(url);