Compare commits

..

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 4d20dae079 1.229.2 2023-07-21 21:58:52 +02:00
DebaucheryLibrarian 86e4fb7603 Fixed Team Skeet profiles. 2023-07-21 21:58:50 +02:00
4 changed files with 7 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.229.1",
"version": "1.229.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.229.1",
"version": "1.229.2",
"license": "ISC",
"dependencies": {
"@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.229.1",
"version": "1.229.2",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

@ -52,6 +52,7 @@ const hairColors = {
raven: 'black',
red: 'red',
redhead: 'red',
'red head': 'red',
rood: 'red',
blue: 'blue',
green: 'green',

View File

@ -62,6 +62,8 @@ function scrapeAll(scenes, channel) {
function scrapeProfile(actor, entity) {
const profile = {};
console.log(actor);
if (actor.bio.about && !/\band\b/.test(actor.bio.about)) {
const bio = actor.bio.about.split(/\n/).filter(Boolean).reduce((acc, item) => {
const [key, value] = item.match(/(.+): (.+)/).slice(1);
@ -149,7 +151,7 @@ async function fetchProfile(baseActor, { entity, parameters }) {
const res = await qu.get(url);
if (res.ok && res.body) {
return scrapeProfile(res.body._source, entity);
return scrapeProfile(res.body._source || res.body, entity);
}
return res.status;