Compare commits
2 Commits
2b90a7a5c8
...
2b5b8fb19d
Author | SHA1 | Date |
---|---|---|
|
2b5b8fb19d | |
|
98d29c0af0 |
|
@ -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": {
|
||||||
|
|
|
@ -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 |
|
@ -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',
|
||||||
},
|
},
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue