Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian bc857530e3 1.246.15 2026-01-23 02:34:39 +01:00
DebaucheryLibrarian 2a12f5ca1d Automatically linking VR scenes to NaughtyAmericaVR.com. 2026-01-23 02:34:37 +01:00
3 changed files with 10 additions and 5 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -10,7 +10,6 @@ function scrapeLatest(scenes, channel) {
const release = {};
const url = query.url('a');
release.url = url;
release.entryId = query.attribute('a', 'data-scene-id') || (url && new URL(url).pathname.match(/-(\d+)$/)?.[1]) || null;
release.date = query.date('.entry-date, .scene-date', 'MMM D, YYYY');
@ -43,6 +42,11 @@ function scrapeLatest(scenes, channel) {
release.channel = slugify(query.content('.site-title'), '');
// NA affiliate prefers to push more traffic to Naughty America VR, all scenes labeled VR seem to be available on NAVR
release.url = release.tags?.some((tag) => tag.toLowerCase() === 'vr')
? url.replace('naughtyamerica.com', 'naughtyamericavr.com')
: url;
return release;
});
}
@ -124,7 +128,8 @@ function scrapeScene({ query }, { url }) {
}
async function fetchScene(url, _channel) {
const res = await unprint.browserRequest(url, {
// latest set NaughtyAmericaVR URL, but try deep scrape from regular NA website
const res = await unprint.browserRequest(url.replace('naughtyamericavr.com', 'naughtyamerica.com'), {
async control(ctx) {
await ctx.locator('.scene-info, .scene').first().hover({ trial: true, timeout: 30000 }); // wait for trailer to initialize
},