Compare commits

..

No commits in common. "1032c3cb574b7a1d4521eca3d6b60d9dccd5e681" and "328550b9a309d69594b2b539aa09aab229d202cf" have entirely different histories.

4 changed files with 8 additions and 11 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -206,9 +206,8 @@ async function fetchEntitiesBySlug(entitySlugs, prefer = 'channel') {
parent_id,
array['parent'] as parent_path
FROM entities
WHERE (slug = ANY(:entitySlugs)
OR url ILIKE ANY(:entityHosts))
AND type IN ('channel', 'network')
WHERE slug = ANY(:entitySlugs)
OR url ILIKE ANY(:entityHosts)
UNION ALL

View File

@ -71,6 +71,7 @@ function scrapeProfile({ query }, url) {
profile.avatar = query.img('.model .photo img');
profile.scenes = scrapeAll(unprint.initAll(query.all('.single .itemsingle')));
console.log(profile);
return profile;
}
@ -88,11 +89,8 @@ async function fetchLatest(channel, page) {
}
async function fetchProfile(actor, { entity }) {
const url = actor.url || `${entity.url}/modelos/${actor.slug}/`;
const res = await unprint.get(url, {
maxRedirects: 0, // will attempt to redirect invalid URL to relevant scene page
});
const url = actor.url || `${entity.url}/models/${actor.slug}/`;
const res = await unprint.get(url);
if (res.ok) {
return scrapeProfile(res.context, url);