Compare commits

..

2 Commits

Author SHA1 Message Date
ThePendulum 2b5b8fb19d 1.89.2 2020-02-12 16:26:13 +01:00
ThePendulum 98d29c0af0 Added Insex fallback for Paintoy. 2020-02-12 16:26:08 +01:00
6 changed files with 11 additions and 5 deletions

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.89.1", "version": "1.89.2",
"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.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -4269,6 +4269,7 @@ 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,7 +4,9 @@ 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 = exa(html, 'body > table'); const scenes = site.slug === 'paintoy'
? 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);
@ -77,14 +79,17 @@ 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.url}/scripts/switch_tour.php?type=brief&page=${page}`; const url = site.slug === 'paintoy' // paintoy's site is partially broken, use front 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(res.body.html, site); return scrapeLatest(site.slug === 'paintoy' ? res.body.toString() : res.body.html, site);
} }
return null; return null;