Fixed Insex html table selector.

This commit is contained in:
DebaucheryLibrarian 2020-11-01 03:25:30 +01:00
parent ccca6a7714
commit 8586817963
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ function scrapeLatest(scenes, site) {
release.likes = parseInt(query.q('.articlePostDateText td:nth-child(3)', true), 10);
const cover = query.img('a img');
release.covers = [[
cover.replace('_thumbnail', ''),
cover,
@ -144,7 +145,7 @@ async function fetchLatest(site, page = 1) {
}
*/
return scrapeLatest(qu.extractAll(res.body.html, 'body > table'), site);
return scrapeLatest(qu.extractAll(res.body.html, '#articleTable > tbody > tr:nth-child(2) > td > table'), site);
}
return res.status;