fix(route): javdb new layout (#9687)
This commit is contained in:
parent
e0a809fbc2
commit
225d922d9c
|
|
@ -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()),
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue