Compare commits
2 Commits
e643e0a924
...
4a2d2ad996
Author | SHA1 | Date |
---|---|---|
|
4a2d2ad996 | |
|
010da8954b |
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.192.0",
|
||||
"version": "1.192.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"version": "1.192.0",
|
||||
"version": "1.192.1",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@casl/ability": "^5.2.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.192.0",
|
||||
"version": "1.192.1",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -5263,6 +5263,15 @@ const sites = [
|
|||
id: 'mylfwood',
|
||||
},
|
||||
},
|
||||
{
|
||||
slug: 'mylfselects',
|
||||
name: 'MYLF Selects',
|
||||
url: 'https://www.mylf.com/series/selects',
|
||||
parent: 'mylf',
|
||||
parameters: {
|
||||
id: 'selects',
|
||||
},
|
||||
},
|
||||
{
|
||||
slug: 'stayhomemilf',
|
||||
name: 'StayHomeMilf',
|
||||
|
|
|
@ -15,7 +15,7 @@ function getChannelSlug(channelName, entity) {
|
|||
const channelSlug = slugify(channelName, '', { removePunctuation: true });
|
||||
const channel = entity.children.find(child => new RegExp(channelSlug).test(child.slug));
|
||||
|
||||
return channel.slug;
|
||||
return channel?.slug || null;
|
||||
}
|
||||
|
||||
function scrapeScene(scene, channel) {
|
||||
|
@ -70,10 +70,9 @@ function scrapeProfile(actor, entity) {
|
|||
}, {});
|
||||
|
||||
// birthdate seems never/rarely correct
|
||||
const measurements = bio.measurements?.match(/Measurements: (\d+)(\w+)-(\d+)-(\d+)/i);
|
||||
|
||||
if (measurements) {
|
||||
[profile.bust, profile.cup, profile.waist, profile.hip] = measurements.slice(1);
|
||||
if (bio.measurements) {
|
||||
profile.measurements = bio.measurements;
|
||||
} else {
|
||||
const breastSize = actor.bio.breastSize?.match(/(\d+)(\w+)/)?.slice(1) || actor.bio.about.match(/Measurements: (\d+)(\w+)/)?.slice(1);
|
||||
|
||||
|
@ -144,8 +143,8 @@ async function fetchProfile(baseActor, { entity, parameters }) {
|
|||
const url = format(parameters.profiles, { slug: baseActor.slug });
|
||||
const res = await qu.get(url);
|
||||
|
||||
if (res.ok) {
|
||||
return scrapeProfile(res.body, entity);
|
||||
if (res.ok && res.body) {
|
||||
return scrapeProfile(res.body._source, entity);
|
||||
}
|
||||
|
||||
return res.status;
|
||||
|
|
Loading…
Reference in New Issue