forked from DebaucheryLibrarian/traxxx
Removed Boob Pedia as gender source, unreliable.
This commit is contained in:
parent
5acaa9c6bf
commit
0d719d88ea
|
@ -328,7 +328,7 @@ async function mergeProfiles(profiles, actor) {
|
||||||
piercings: prevProfile.piercings || profile.piercings,
|
piercings: prevProfile.piercings || profile.piercings,
|
||||||
tattoos: prevProfile.tattoos || profile.tattoos,
|
tattoos: prevProfile.tattoos || profile.tattoos,
|
||||||
social: prevProfile.social.concat(profile.social || []),
|
social: prevProfile.social.concat(profile.social || []),
|
||||||
avatars: prevProfile.avatars.concat(profile.avatar ? [profile.avatar] : []), // don't flatten fallbacks
|
avatars: prevProfile.avatars.concat(profile.avatar ? [{ src: profile.avatar }] : []), // don't flatten fallbacks
|
||||||
releases: prevProfile.releases.concat(profile.releases ? profile.releases : []), // don't flatten fallbacks
|
releases: prevProfile.releases.concat(profile.releases ? profile.releases : []), // don't flatten fallbacks
|
||||||
};
|
};
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -12,10 +12,13 @@ function scrapeProfile(html) {
|
||||||
.map(detail => qa(detail, 'td', true))
|
.map(detail => qa(detail, 'td', true))
|
||||||
.reduce((acc, [key, value]) => ({ ...acc, [key.slice(0, -1).replace(/[\s+|/]/g, '_')]: value }), {});
|
.reduce((acc, [key, value]) => ({ ...acc, [key.slice(0, -1).replace(/[\s+|/]/g, '_')]: value }), {});
|
||||||
|
|
||||||
|
|
||||||
|
/* unreliable, see: Syren De Mer
|
||||||
const catlinks = qa('#mw-normal-catlinks a', true);
|
const catlinks = qa('#mw-normal-catlinks a', true);
|
||||||
const isTrans = catlinks.some(link => link.match(/shemale|transgender/i));
|
const isTrans = catlinks.some(link => link.match(/shemale|transgender/i));
|
||||||
|
|
||||||
profile.gender = isTrans ? 'transsexual' : 'female';
|
profile.gender = isTrans ? 'transsexual' : 'female';
|
||||||
|
*/
|
||||||
|
|
||||||
profile.birthdate = qd('.bday', 'YYYY-MM-DD');
|
profile.birthdate = qd('.bday', 'YYYY-MM-DD');
|
||||||
|
|
||||||
profile.description = q('#mw-content-text > p', true);
|
profile.description = q('#mw-content-text > p', true);
|
||||||
|
|
Loading…
Reference in New Issue