diff --git a/docs/anime.md b/docs/anime.md index f2c496e745..8dd1cf93c7 100644 --- a/docs/anime.md +++ b/docs/anime.md @@ -233,7 +233,7 @@ pageClass: routes ### 三界异次元 - + ## 鼠绘漫画 diff --git a/lib/routes/3ycy/home.js b/lib/routes/3ycy/home.js index e1f5199c50..7b323f30b3 100644 --- a/lib/routes/3ycy/home.js +++ b/lib/routes/3ycy/home.js @@ -33,12 +33,21 @@ module.exports = async (ctx) => { const res = await got({ method: 'get', url: url.resolve(root_url, link) }); const content = cheerio.load(res.data); + const post = content('div.postBody'); + post.find('img[data-src]').each((_, ele) => { + ele = content(ele); + ele.attr('src', ele.attr('data-src')); + ele.attr('alt', title.text()); + ele.attr('title', title.text()); + ele.removeAttr('class'); + ele.removeAttr('data-src'); + }); return { title: title.text(), link: link, pubDate: pubDate, - description: content('div.postBody').html(), + description: post.html(), }; }); })