From 7a3ccac1106171e2b34e7bf0c86f740cde0193eb Mon Sep 17 00:00:00 2001 From: sgqy Date: Sun, 28 Oct 2018 03:02:50 +0800 Subject: [PATCH] nhentai: little change (#989) --- docs/README.md | 2 +- routes/nhentai/util.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 58f25db19..c93fbba5c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2083,4 +2083,4 @@ IATA 国际航空运输协会机场代码, 参见[维基百科 国际航空运 ### nHentai - + diff --git a/routes/nhentai/util.js b/routes/nhentai/util.js index 8a6ecff92..b359a54e0 100644 --- a/routes/nhentai/util.js +++ b/routes/nhentai/util.js @@ -22,8 +22,9 @@ exports.getDetail = async (url) => { galleryThumbs = galleryThumbs.map((src) => src.replace(/(.+)(\d+)t\.(.+)/, (_, p1, p2, p3) => `${p1}${p2}.${p3}`)); galleryThumbs = galleryThumbs.map((src) => src.replace('t.nhentai.net', 'i.nhentai.net')); - const renderImg = (src) => ``; + const renderImg = (src) => `
`; return { + title: $('div#info > h2').text() || $('div#info > h1').text(), pubDate: new Date($('time').attr('datetime')).toUTCString(), guid: `full:${url}`, description: `