Compare commits
No commits in common. "bc857530e3bb3de884a81accd32bacd79f15417e" and "b72bb39ff7860543fac60de14042f1b7e1cc80b7" have entirely different histories.
bc857530e3
...
b72bb39ff7
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.246.15",
|
||||
"version": "1.246.14",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx",
|
||||
"version": "1.246.15",
|
||||
"version": "1.246.14",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.458.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.246.15",
|
||||
"version": "1.246.14",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ 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');
|
||||
|
|
@ -42,11 +43,6 @@ 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;
|
||||
});
|
||||
}
|
||||
|
|
@ -128,8 +124,7 @@ function scrapeScene({ query }, { url }) {
|
|||
}
|
||||
|
||||
async function fetchScene(url, _channel) {
|
||||
// latest set NaughtyAmericaVR URL, but try deep scrape from regular NA website
|
||||
const res = await unprint.browserRequest(url.replace('naughtyamericavr.com', 'naughtyamerica.com'), {
|
||||
const res = await unprint.browserRequest(url, {
|
||||
async control(ctx) {
|
||||
await ctx.locator('.scene-info, .scene').first().hover({ trial: true, timeout: 30000 }); // wait for trailer to initialize
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue