Fixed Naughty America locator resolving to multiple elements on Tonight's Girlfriend, removed stray console log.

This commit is contained in:
DebaucheryLibrarian 2026-01-22 01:25:24 +01:00
parent ef1984664d
commit 351fd8def0
1 changed files with 1 additions and 3 deletions

View File

@ -119,15 +119,13 @@ function scrapeScene({ query }, { url }) {
query.exists('//a[contains(@class, "label-hd") and contains(text(), "HD")]') && 720, query.exists('//a[contains(@class, "label-hd") and contains(text(), "HD")]') && 720,
].filter(Boolean); ].filter(Boolean);
console.log(release);
return release; return release;
} }
async function fetchScene(url, _channel) { async function fetchScene(url, _channel) {
const res = await unprint.browserRequest(url, { const res = await unprint.browserRequest(url, {
async control(ctx) { async control(ctx) {
await ctx.locator('.scene-info, .scene').hover({ trial: true, timeout: 30000 }); // wait for trailer to initialize await ctx.locator('.scene-info, .scene').first().hover({ trial: true, timeout: 30000 }); // wait for trailer to initialize
}, },
}); });