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

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
},
});