Compare commits
No commits in common. "2b5b8fb19d2cf82da14f82e9d0a3c3d76fd4d956" and "2b90a7a5c878b921da8ea1e4b41887fe54328b6d" have entirely different histories.
2b5b8fb19d
...
2b90a7a5c8
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.89.2",
|
||||
"version": "1.89.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.89.2",
|
||||
"version": "1.89.1",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB |
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
|
@ -4269,7 +4269,6 @@ const sites = [
|
|||
name: 'Teens Love Anal',
|
||||
description: '',
|
||||
url: 'https://www.teensloveanal.com',
|
||||
tags: ['anal'],
|
||||
parameters: { id: 'tla' },
|
||||
network: 'teamskeet',
|
||||
},
|
||||
|
|
|
@ -4,9 +4,7 @@ const bhttp = require('bhttp');
|
|||
const { get, exa, fd } = require('../utils/q');
|
||||
|
||||
function scrapeLatest(html, site) {
|
||||
const scenes = site.slug === 'paintoy'
|
||||
? exa(html, '#articleTable table[cellspacing="2"]')
|
||||
: exa(html, 'body > table');
|
||||
const scenes = exa(html, 'body > table');
|
||||
|
||||
return scenes.map(({ q, qd, qi, qu, ql }) => {
|
||||
// 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) {
|
||||
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 url = `${site.url}/scripts/switch_tour.php?type=brief&page=${page}`;
|
||||
const res = await bhttp.get(url, {
|
||||
type: 'brief',
|
||||
page,
|
||||
});
|
||||
|
||||
if (res.statusCode === 200) {
|
||||
return scrapeLatest(site.slug === 'paintoy' ? res.body.toString() : res.body.html, site);
|
||||
return scrapeLatest(res.body.html, site);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue