Added Kink VR to Kink scraper, no longer using Badoink?

This commit is contained in:
DebaucheryLibrarian
2026-01-06 02:30:35 +01:00
parent 899691ebd7
commit c311964a8a
6 changed files with 207 additions and 28 deletions

View File

@@ -496,20 +496,23 @@ async function curateProfile(profile, actor) {
}
}
curatedProfile.social = [].concat(profile.social).map((social) => {
if (!social) {
return null;
}
curatedProfile.social = []
.concat(profile.social) // legacy
.concat(profile.socials)
.map((social) => {
if (!social) {
return null;
}
try {
const { origin, pathname } = new URL(social);
try {
const { origin, pathname } = new URL(social);
return `${origin}${pathname}`;
} catch (error) {
logger.warn(`Profile scraper for '${profile.entity.name}' returned invalid social link: ${social}`);
return null;
}
}).filter(Boolean);
return `${origin}${pathname}`;
} catch (error) {
logger.warn(`Profile scraper for '${profile.entity.name}' returned invalid social link: ${social}`);
return null;
}
}).filter(Boolean);
curatedProfile.scenes = toBaseReleases(profile.scenes || profile.releases, profile.entity, actor)
// attach actor to base scene, in case it was not scraped