Compare commits

...

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",
"version": "1.255.10",
"version": "1.255.11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.255.10",
"version": "1.255.11",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

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

View File

@@ -1,7 +1,6 @@
'use strict';
const unprint = require('unprint');
const cookie = require('cookie');
const slugify = require('../utils/slugify');
@@ -54,16 +53,14 @@ function scrapeAll(scenes, channel) {
async function beforeFetchLatest(channel) {
// 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: {
'X-Requested-With': 'XMLHttpRequest',
'Accept-Language': 'en-US,en', // fetch English rather than French titles
},
});
const sessionCookie = cookie.parse(res.headers['set-cookie'][0])?.dorcelclub;
return `dorcelclub=${sessionCookie}`;
return `dorcelclub=${cookies.dorcelclub}`;
}
async function fetchLatest(channel, page = 1, _options, { beforeFetchLatest: sessionCookie }) {