Updated unprint for improved browser clean-up.

This commit is contained in:
DebaucheryLibrarian 2026-01-07 01:11:38 +01:00
parent 69d2550a85
commit 42330a7d70
3 changed files with 1973 additions and 7 deletions

1973
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -129,6 +129,7 @@
"mysql": "^2.18.1",
"nanoid": "^3.3.7",
"node-fetch": "^3.3.2",
"npm": "^11.7.0",
"object-merge-advanced": "^12.1.0",
"object.omit": "^3.0.0",
"pg": "^8.11.3",
@ -151,7 +152,7 @@
"tunnel": "0.0.6",
"ua-parser-js": "^1.0.37",
"undici": "^5.28.1",
"unprint": "^0.17.8",
"unprint": "^0.17.9",
"url-pattern": "^1.0.3",
"v-tooltip": "^2.1.3",
"video.js": "^8.6.1",

View File

@ -52,7 +52,7 @@ async function fetchLatest(channel, page = 1) {
const res = await unprint.browserRequest(url, {
selectAll: '.site-list .scene-item, .panel-body',
async control(ctx) {
await ctx.locator('.site-list').hover({ trial: true, timeout: 10000 }); // wait for trailer to initialize
await ctx.locator('.site-list').hover({ trial: true, timeout: 10000 }); // wait for overview to initialize
},
});
@ -156,7 +156,7 @@ async function fetchProfile({ slug }, { channel }) {
},
select: '.bio-info, .performer-details',
async control(ctx) {
await ctx.locator('.bio-info').hover({ trial: true, timeout: 30000 }); // wait for trailer to initialize
await ctx.locator('.bio-info').hover({ trial: true, timeout: 30000 }); // wait for bio to initialize
},
});