diff --git a/lib/v2/javdb/utils.js b/lib/v2/javdb/utils.js index bdec2133f..d849d7932 100644 --- a/lib/v2/javdb/utils.js +++ b/lib/v2/javdb/utils.js @@ -14,16 +14,16 @@ module.exports = { const $ = cheerio.load(response.data); - $('.tags, .tag-can-play').remove(); + $('.tags, .tag-can-play, .over18-modal').remove(); - let items = $('.grid-item a') + let items = $('div.item') .slice(0, ctx.query.limit ? parseInt(ctx.query.limit) : 20) .toArray() .map((item) => { item = $(item); return { - title: item.text(), - link: `${rootUrl}${item.attr('href')}`, + title: item.find('.video-title').text(), + link: `${rootUrl}${item.find('.box').attr('href')}`, pubDate: parseDate(item.find('.meta').text()), }; });