Updated unprint for improved browser clean-up.
This commit is contained in:
@@ -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
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user