From a30fb182e03e376a6abfb1e08f5d90410b609a0b Mon Sep 17 00:00:00 2001 From: EsuRt <15177069+EsuRt@users.noreply.github.com> Date: Mon, 26 Oct 2020 01:17:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:hanime=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#5985)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: EsuRt --- lib/routes/hanime/video.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/routes/hanime/video.js b/lib/routes/hanime/video.js index 53d307d0d..67bf9c3c3 100644 --- a/lib/routes/hanime/video.js +++ b/lib/routes/hanime/video.js @@ -27,6 +27,9 @@ module.exports = async (ctx) => { title: 'Hanime', link: 'https://hanime.tv/', item: list.map((item) => { + // 替换图片地址 + const coverreg = /(https:\/\/)(static-assets.droidbuzz.top\/images\/covers\/.*)/; + const imagereg = /(https:\/\/)(static-assets.droidbuzz.top\/images\/)(posters)(.*)(-pv1.png)/; const videoUrl = 'https://hanime.tv/hentai-videos/' + item.slug; // 视频预览图,可通过视频页面的预览图片获取 const videoImage = item.poster_url; @@ -57,11 +60,11 @@ module.exports = async (ctx) => { videoDescription + '
' + '' + '
' + '', link: videoUrl, };