Added Kink VR to Kink scraper, no longer using Badoink?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user