2 Commits

Author SHA1 Message Date
DebaucheryLibrarian
a62cfcac3d 1.255.11 2026-08-07 02:46:06 +02:00
DebaucheryLibrarian
5b9c635ed1 Fixed deprecated unprint cookie handling in Dorcel scraper. 2026-08-07 02:46:01 +02:00
3 changed files with 5 additions and 8 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.255.10", "version": "1.255.11",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.255.10", "version": "1.255.11",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.458.0", "@aws-sdk/client-s3": "^3.458.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.255.10", "version": "1.255.11",
"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": {

View File

@@ -1,7 +1,6 @@
'use strict'; 'use strict';
const unprint = require('unprint'); const unprint = require('unprint');
const cookie = require('cookie');
const slugify = require('../utils/slugify'); const slugify = require('../utils/slugify');
@@ -54,16 +53,14 @@ function scrapeAll(scenes, channel) {
async function beforeFetchLatest(channel) { async function beforeFetchLatest(channel) {
// scene page only seems to accept language preferences from session // scene page only seems to accept language preferences from session
const { res } = await unprint.get(`${channel.url}/en/news-videos-x-marc-dorcel`, { const { cookies } = await unprint.get(`${channel.url}/en/news-videos-x-marc-dorcel`, {
headers: { headers: {
'X-Requested-With': 'XMLHttpRequest', 'X-Requested-With': 'XMLHttpRequest',
'Accept-Language': 'en-US,en', // fetch English rather than French titles 'Accept-Language': 'en-US,en', // fetch English rather than French titles
}, },
}); });
const sessionCookie = cookie.parse(res.headers['set-cookie'][0])?.dorcelclub; return `dorcelclub=${cookies.dorcelclub}`;
return `dorcelclub=${sessionCookie}`;
} }
async function fetchLatest(channel, page = 1, _options, { beforeFetchLatest: sessionCookie }) { async function fetchLatest(channel, page = 1, _options, { beforeFetchLatest: sessionCookie }) {