Compare commits

..

No commits in common. "2b5b8fb19d2cf82da14f82e9d0a3c3d76fd4d956" and "2b90a7a5c878b921da8ea1e4b41887fe54328b6d" have entirely different histories.

6 changed files with 5 additions and 11 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.89.2", "version": "1.89.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@ -4269,7 +4269,6 @@ const sites = [
name: 'Teens Love Anal', name: 'Teens Love Anal',
description: '', description: '',
url: 'https://www.teensloveanal.com', url: 'https://www.teensloveanal.com',
tags: ['anal'],
parameters: { id: 'tla' }, parameters: { id: 'tla' },
network: 'teamskeet', network: 'teamskeet',
}, },

View File

@ -4,9 +4,7 @@ const bhttp = require('bhttp');
const { get, exa, fd } = require('../utils/q'); const { get, exa, fd } = require('../utils/q');
function scrapeLatest(html, site) { function scrapeLatest(html, site) {
const scenes = site.slug === 'paintoy' const scenes = exa(html, 'body > table');
? exa(html, '#articleTable table[cellspacing="2"]')
: exa(html, 'body > table');
return scenes.map(({ q, qd, qi, qu, ql }) => { return scenes.map(({ q, qd, qi, qu, ql }) => {
// if (q('.articleTitleText')) return scrapeFirstLatest(ctx(el), site); // if (q('.articleTitleText')) return scrapeFirstLatest(ctx(el), site);
@ -79,17 +77,14 @@ function scrapeScene({ q, qd, ql, qu, qis, qp, qt }, site) {
} }
async function fetchLatest(site, page = 1) { async function fetchLatest(site, page = 1) {
const url = site.slug === 'paintoy' // paintoy's site is partially broken, use front page const url = `${site.url}/scripts/switch_tour.php?type=brief&page=${page}`;
? `${site.url}/corporal/punishment/gallery.php?type=brief&page=${page}`
: `${site.url}/scripts/switch_tour.php?type=brief&page=${page}`;
const res = await bhttp.get(url, { const res = await bhttp.get(url, {
type: 'brief', type: 'brief',
page, page,
}); });
if (res.statusCode === 200) { if (res.statusCode === 200) {
return scrapeLatest(site.slug === 'paintoy' ? res.body.toString() : res.body.html, site); return scrapeLatest(res.body.html, site);
} }
return null; return null;