From b2d40539f21549b46d452d5049b253b8a5e3f037 Mon Sep 17 00:00:00 2001 From: Quan Date: Wed, 23 Dec 2020 20:49:51 +0800 Subject: [PATCH] fix: ssmh (#6506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 图片链接获取错误 #5681 --- lib/routes/ssmh/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/ssmh/index.js b/lib/routes/ssmh/index.js index 2cb922d694..ac1c8bb97a 100644 --- a/lib/routes/ssmh/index.js +++ b/lib/routes/ssmh/index.js @@ -19,7 +19,7 @@ module.exports = async (ctx) => { item: list .map((index, item) => { item = $(item); - thumbnail_url = 'https:' + `${item.find('a > img').attr('data-original')}`; + thumbnail_url = 'https:' + `${ item.find('a > img').attr('src') ? item.find('a > img').attr('src') : item.find('a > img').attr('data-original') }`; link_url = 'https://wnacg.org' + `${item.find('a').attr('href')}`; return { title: item.find('a').attr('title'),