From 9a3bea3525457b297339306dbbf49cde6dc3ab9e Mon Sep 17 00:00:00 2001
From: DIYgod ${e.desc.replace(/\n+/g, ' ${e.desc.replace(/\n+/g, ' ${transcript.html()} ${transcript.html()} `,
+ description: `${item.desc}
`,
// the article publish time
pubDate: new Date(item.time * 1000).toUTCString(),
// the article link
diff --git a/docs/joinus/README.md b/docs/joinus/README.md
index 09f5d11a1..bcb9c875e 100644
--- a/docs/joinus/README.md
+++ b/docs/joinus/README.md
@@ -82,7 +82,7 @@ sidebar: auto
// 文章标题
title: item.title,
// 文章正文
- description: `${item.desc}
`,
+ description: `${item.desc}
`,
// 文章发布时间
pubDate: new Date(item.time * 1000).toUTCString(),
// 文章链接
@@ -141,7 +141,7 @@ sidebar: auto
description: `作者:${item
.find('.usr-pic a')
.last()
- .text()}
描述:${item.find('.content p').text()}`,
+ .text()}
描述:${item.find('.content p').text()}`,
link: item.find('.title a').attr('href'),
};
})
diff --git a/lib/routes/005tv/zx.js b/lib/routes/005tv/zx.js
index eb77800de..92af482e8 100644
--- a/lib/routes/005tv/zx.js
+++ b/lib/routes/005tv/zx.js
@@ -17,7 +17,7 @@ module.exports = async (ctx) => {
.find('h3 > a')
.text()
.trim(),
- description: `
${$(item)
diff --git a/lib/routes/9to5/utils.js b/lib/routes/9to5/utils.js
index a068aa573..ab4f78461 100644
--- a/lib/routes/9to5/utils.js
+++ b/lib/routes/9to5/utils.js
@@ -6,7 +6,7 @@ const ProcessFeed = (data) => {
const cover = $('meta[property="og:image"]');
if (cover.length > 0) {
- $(``).insertBefore(content[0].firstChild);
+ $(`
`).insertBefore(content[0].firstChild);
}
// remove useless DOMs
diff --git a/lib/routes/acfun/bangumi.js b/lib/routes/acfun/bangumi.js
index 019dab4ed..673969100 100644
--- a/lib/routes/acfun/bangumi.js
+++ b/lib/routes/acfun/bangumi.js
@@ -33,7 +33,7 @@ module.exports = async (ctx) => {
return {
title: `${video.episodeName}-${video.newTitle}`,
- description: `
`,
+ description: `
`,
link: `http://www.acfun.cn/bangumi/ab${id}_${video.groupId}_${video.id}`,
pubDate: new Date(video.onlineTime).toUTCString(),
};
diff --git a/lib/routes/acfun/video.js b/lib/routes/acfun/video.js
index cb99e0b26..fd4a707f3 100644
--- a/lib/routes/acfun/video.js
+++ b/lib/routes/acfun/video.js
@@ -34,7 +34,7 @@ module.exports = async (ctx) => {
return {
title: itemTitle,
- description: `
`,
+ description: `
`,
link: host + itemUrl,
pubDate: new Date(itemDate).toUTCString(),
};
diff --git a/lib/routes/anigamer/anime.js b/lib/routes/anigamer/anime.js
index 437b69a81..a601f7365 100644
--- a/lib/routes/anigamer/anime.js
+++ b/lib/routes/anigamer/anime.js
@@ -5,7 +5,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: anime.title,
link: `https://ani.gamer.com.tw/animeRef.php?sn=${anime.anime_sn}`,
- description: `
` + anime.content.trim(),
+ description: `
` + anime.content.trim(),
item: anime.volumes[0].map((item) => ({
title: `${anime.title} 第 ${item.volume} 集`,
link: `https://ani.gamer.com.tw/animeVideo.php?sn=${item.video_sn}`,
diff --git a/lib/routes/animen/news.js b/lib/routes/animen/news.js
index 6c17188f5..d95fef328 100644
--- a/lib/routes/animen/news.js
+++ b/lib/routes/animen/news.js
@@ -59,7 +59,7 @@ module.exports = async (ctx) => {
description = detail.content;
} else {
const image = detail.p_original_path;
- description = `
`;
+ description = `
`;
}
return description;
});
diff --git a/lib/routes/apkpure/versions.js b/lib/routes/apkpure/versions.js
index ba2cdf14c..4e74c9ad0 100644
--- a/lib/routes/apkpure/versions.js
+++ b/lib/routes/apkpure/versions.js
@@ -13,7 +13,7 @@ module.exports = async (ctx) => {
img.searchParams.delete('w'); // get full resolution icon
ctx.state.data = {
title: $('.ver-top-h1').text(),
- description: ` ` + $('.ver-top-title>h2').text(),
+ description: `
` + $('.ver-top-title>h2').text(),
link: decodeURI(link),
item: $('.ver li')
.toArray()
diff --git a/lib/routes/apple/appstore/gofans.js b/lib/routes/apple/appstore/gofans.js
index 208aba672..022d41171 100644
--- a/lib/routes/apple/appstore/gofans.js
+++ b/lib/routes/apple/appstore/gofans.js
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
item: response.data.data.map((item) => ({
title: `「${item.price === '0.00' ? '免费' : '降价'}」-「${item.kind === '1' ? 'macOS' : 'iOS'}」${item.name}`,
description: `
-
+
原价:¥${item.original_price} -> 现价:¥${item.price}
diff --git a/lib/routes/apple/appstore/xianmian.js b/lib/routes/apple/appstore/xianmian.js
index 46ed82980..8e3d4ad9e 100644
--- a/lib/routes/apple/appstore/xianmian.js
+++ b/lib/routes/apple/appstore/xianmian.js
@@ -12,7 +12,7 @@ module.exports = async (ctx) => {
item: data.map((item) => ({
title: `「${item.discount_info[0].discounted_price === '0.00' ? '免费' : '降价'}」${item.app.name}`,
description: `
-
+
原价:¥${item.discount_info[0].original_price} -> 现价:¥${item.discount_info[0].discounted_price}
diff --git a/lib/routes/aptonic/action.js b/lib/routes/aptonic/action.js
index 93f94b97f..c93a3a739 100644
--- a/lib/routes/aptonic/action.js
+++ b/lib/routes/aptonic/action.js
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
return {
title: item.find('h2').text(),
description: `
-
+
${$(item.find('td')[1])
.children()
diff --git a/lib/routes/aqicn/index.js b/lib/routes/aqicn/index.js
index f28cac8dd..a2f543a0c 100644
--- a/lib/routes/aqicn/index.js
+++ b/lib/routes/aqicn/index.js
@@ -17,7 +17,7 @@ module.exports = async (ctx) => {
item: [
{
title: `${data.namena}实时空气质量(AQI)${data.utimecn}`,
- description: `${data.infocn}
风力:${data.cwind[0]}级
AQI:${data.aqi}`,
+ description: `${data.infocn}
风力:${data.cwind[0]}级
AQI:${data.aqi}`,
pubDate: new Date(data.time * 1000).toUTCString(),
guid: data.time,
link: `https://aqicn.org/city/${data.ids.path}`,
diff --git a/lib/routes/atfd/index.js b/lib/routes/atfd/index.js
index 00a7ae821..bd937c59a 100644
--- a/lib/routes/atfd/index.js
+++ b/lib/routes/atfd/index.js
@@ -37,7 +37,7 @@ module.exports = async (ctx) => {
description: 'All the Flight Deals',
item: data.map((item) => ({
title: `[${item.dateRanges[0] ? dayjs(item.dateRanges[0].start).format('YYYY MMM DD') + ' to ' + dayjs(item.dateRanges[0].end).format('YYYY MMM DD') : ''}] ${item.title}`,
- description: `
`,
+ description: `From To Price ${item.cityPairs[0].origin.iata}, ${item.cityPairs[0].origin.city}, ${item.cityPairs[0].origin.countryName} ${item.cityPairs[0].destination.iata}, ${item.cityPairs[0].destination.city}, ${item.cityPairs[0].destination.countryName} ${item.currency} ${item.price}
`,
pubDate: new Date(item.createdAt),
guid: item.id,
link: item.url,
diff --git a/lib/routes/autotrader/index.js b/lib/routes/autotrader/index.js
index e0978b191..b23a0e0c8 100644
--- a/lib/routes/autotrader/index.js
+++ b/lib/routes/autotrader/index.js
@@ -49,7 +49,7 @@ module.exports = async (ctx) => {
let images = '';
$('.fpa-image-overlay img').each((i, e) => {
- images += `From To Price ${item.cityPairs[0].origin.iata}, ${item.cityPairs[0].origin.city}, ${item.cityPairs[0].origin.countryName} ${item.cityPairs[0].destination.iata}, ${item.cityPairs[0].destination.city}, ${item.cityPairs[0].destination.countryName} ${item.currency} ${item.price}
`;
+ images += `
`;
});
const description = keyFacts + images + $('meta[name="og:description"]').attr('content');
diff --git a/lib/routes/baidu/doodles.js b/lib/routes/baidu/doodles.js
index 779e600dc..38be4f9a5 100644
--- a/lib/routes/baidu/doodles.js
+++ b/lib/routes/baidu/doodles.js
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
return {
title: `${item.find('.title').text()}-${item.find('.date').text()}`,
- description: ``,
+ description: `
`,
link: item.find('.more a').attr('href'),
};
})
diff --git a/lib/routes/bangumi/calendar/today.js b/lib/routes/bangumi/calendar/today.js
index e3e0ef805..bc602f6dd 100644
--- a/lib/routes/bangumi/calendar/today.js
+++ b/lib/routes/bangumi/calendar/today.js
@@ -38,7 +38,7 @@ module.exports = async (ctx) => {
const link = `http://bangumi.tv/subject/${bgm.bgm_id}`;
const id = `${link}#${new Intl.DateTimeFormat('zh-CN').format(updated)}`;
- const image = `
`;
+ const image = `
`;
const html =
image +
'
' +
diff --git a/lib/routes/bangumi/subject/ep.js b/lib/routes/bangumi/subject/ep.js
index 807b1adf6..ed11f010c 100644
--- a/lib/routes/bangumi/subject/ep.js
+++ b/lib/routes/bangumi/subject/ep.js
@@ -17,7 +17,7 @@ module.exports = async (subjectID) => {
description: epsInfo.summary,
item: activeEps.reverse().map((e) => ({
title: `ep.${e.sort} ${e.name_cn}`,
- description: `
')}
')}` + message;
+ message = `
` + message;
}
$(message).insertAfter(content[0].lastChild);
diff --git a/lib/routes/bilibili/article.js b/lib/routes/bilibili/article.js
index e6fe8ef85..d13f6315b 100644
--- a/lib/routes/bilibili/article.js
+++ b/lib/routes/bilibili/article.js
@@ -22,7 +22,7 @@ module.exports = async (ctx) => {
data.articles &&
data.articles.map((item) => ({
title: item.title,
- description: `${item.summary}
`,
+ description: `${item.summary}
`,
pubDate: new Date(item.publish_time * 1000).toUTCString(),
link: `https://www.bilibili.com/read/cv${item.id}`,
})),
diff --git a/lib/routes/bilibili/audio.js b/lib/routes/bilibili/audio.js
index b96b0369e..f2eb39fea 100644
--- a/lib/routes/bilibili/audio.js
+++ b/lib/routes/bilibili/audio.js
@@ -20,7 +20,7 @@ module.exports = async (ctx) => {
const title = item.title;
const link = audio + item.statistic.sid;
const author = item.author;
- const description = item.intro + `
`;
+ const description = item.intro + `
`;
const single = {
title: title,
diff --git a/lib/routes/bilibili/bangumi.js b/lib/routes/bilibili/bangumi.js
index 2eeb5c6ba..9891a9316 100644
--- a/lib/routes/bilibili/bangumi.js
+++ b/lib/routes/bilibili/bangumi.js
@@ -28,7 +28,7 @@ module.exports = async (ctx) => {
data.mediaInfo.episodes &&
data.mediaInfo.episodes.reverse().map((item) => ({
title: `第${item.index}话 ${item.index_title}`,
- description: `更新时间:${item.pub_real_time}
`,
+ description: `更新时间:${item.pub_real_time}
`,
pubDate: new Date(item.pub_real_time).toUTCString(),
link: `https://www.bilibili.com/bangumi/play/ep${item.ep_id}`,
})),
diff --git a/lib/routes/bilibili/coin.js b/lib/routes/bilibili/coin.js
index fb91b0fc7..4655a9cda 100644
--- a/lib/routes/bilibili/coin.js
+++ b/lib/routes/bilibili/coin.js
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
description: `${name} 的 bilibili 投币视频`,
item: data.map((item) => ({
title: item.title,
- description: `${item.desc}
`,
+ description: `${item.desc}
`,
pubDate: new Date(item.time * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
})),
diff --git a/lib/routes/bilibili/dynamic.js b/lib/routes/bilibili/dynamic.js
index ae34357d0..32cf067ce 100644
--- a/lib/routes/bilibili/dynamic.js
+++ b/lib/routes/bilibili/dynamic.js
@@ -27,11 +27,11 @@ module.exports = async (ctx) => {
let imgHTML = '';
if (data.pictures) {
for (let i = 0; i < data.pictures.length; i++) {
- imgHTML += `
`;
+ imgHTML += `
`;
}
}
if (data.pic) {
- imgHTML += `
`;
+ imgHTML += `
`;
}
// link
diff --git a/lib/routes/bilibili/followings_video.js b/lib/routes/bilibili/followings_video.js
index 8d2ea599a..aa31644f5 100644
--- a/lib/routes/bilibili/followings_video.js
+++ b/lib/routes/bilibili/followings_video.js
@@ -27,7 +27,7 @@ module.exports = async (ctx) => {
const item = {
title: card_data.title,
- description: `${card_data.desc}
`,
+ description: `${card_data.desc}
`,
pubDate: new Date(card_data.pubdate * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${card_data.aid}`,
author: card.desc.user_profile.info.uname,
diff --git a/lib/routes/bilibili/linkNews.js b/lib/routes/bilibili/linkNews.js
index 418dfe88e..da7dc76d7 100644
--- a/lib/routes/bilibili/linkNews.js
+++ b/lib/routes/bilibili/linkNews.js
@@ -35,7 +35,7 @@ module.exports = async (ctx) => {
data &&
data.map((item) => ({
title: item.title,
- description: `${item.mark}
`,
+ description: `${item.mark}
`,
pubDate: new Date(item.ctime.replace(' ', 'T') + '+08:00').toUTCString(),
link: item.announce_link ? item.announce_link : `https://link.bilibili.com/p/eden/news#/newsdetail?id=${item.id}`,
})),
diff --git a/lib/routes/bilibili/mallIP.js b/lib/routes/bilibili/mallIP.js
index 7377e2371..ae30896c7 100644
--- a/lib/routes/bilibili/mallIP.js
+++ b/lib/routes/bilibili/mallIP.js
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
link: `https://mall.bilibili.com/list.html?ip=${id}`,
item: data.list.map((item) => ({
title: item.name,
- description: `${item.name}
${item.brief}
¥${item.price}`,
+ description: `${item.name}
${item.brief}
¥${item.price}`,
link: `https://mall.bilibili.com/detail.html?itemsId=${item.itemsId}`,
})),
};
diff --git a/lib/routes/bilibili/mallNew.js b/lib/routes/bilibili/mallNew.js
index 68585d0f1..1064a70bd 100644
--- a/lib/routes/bilibili/mallNew.js
+++ b/lib/routes/bilibili/mallNew.js
@@ -21,9 +21,7 @@ module.exports = async (ctx) => {
link: 'https://mall.bilibili.com/date.html?page=new',
item: items.map((item) => ({
title: item.name,
- description: `${item.name}
${item.priceDesc ? `${item.pricePrefix}${item.priceSymbol}${item.priceDesc[0]}` : ''}
APP 内打开`,
+ description: `${item.name}
${item.priceDesc ? `${item.pricePrefix}${item.priceSymbol}${item.priceDesc[0]}` : ''}
APP 内打开`,
link: item.itemUrlForH5,
})),
};
diff --git a/lib/routes/bilibili/partion-ranking.js b/lib/routes/bilibili/partion-ranking.js
index 2ccc99773..3c42eb2c0 100644
--- a/lib/routes/bilibili/partion-ranking.js
+++ b/lib/routes/bilibili/partion-ranking.js
@@ -40,7 +40,7 @@ module.exports = async (ctx) => {
item = {
title: `${item.title}`,
- description: `${item.description}
Tags:${item.tag}`,
+ description: `${item.description}
Tags:${item.tag}`,
pubDate: new Date(item.pubdate).toUTCString(),
link: `https://www.bilibili.com/video/av${item.id}`,
author: item.author,
diff --git a/lib/routes/bilibili/partion.js b/lib/routes/bilibili/partion.js
index e79c2eb99..58a2c325b 100644
--- a/lib/routes/bilibili/partion.js
+++ b/lib/routes/bilibili/partion.js
@@ -25,7 +25,7 @@ module.exports = async (ctx) => {
list &&
list.map((item) => ({
title: `${item.title}`,
- description: `${item.desc}`,
+ description: `${item.desc}
`,
pubDate: new Date(item.pubdate * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
author: item.owner.name,
diff --git a/lib/routes/bilibili/topic.js b/lib/routes/bilibili/topic.js
index 7e0648a07..fcb1eccba 100644
--- a/lib/routes/bilibili/topic.js
+++ b/lib/routes/bilibili/topic.js
@@ -26,11 +26,11 @@ module.exports = async (ctx) => {
let imgHTML = '';
if (cardData.pictures) {
for (let i = 0; i < cardData.pictures.length; i++) {
- imgHTML += `
`;
+ imgHTML += `
`;
}
}
if (cardData.pic) {
- imgHTML += `
`;
+ imgHTML += `
`;
}
// link
diff --git a/lib/routes/bilibili/userChannel.js b/lib/routes/bilibili/userChannel.js
index 8a76679e1..bd64a5484 100644
--- a/lib/routes/bilibili/userChannel.js
+++ b/lib/routes/bilibili/userChannel.js
@@ -34,7 +34,7 @@ module.exports = async (ctx) => {
item: data.archives.map((item) => ({
title: item.title,
- description: `${item.desc}
`,
+ description: `${item.desc}
`,
pubDate: new Date(item.pubdate * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
author: userName,
diff --git a/lib/routes/bilibili/userFav.js b/lib/routes/bilibili/userFav.js
index df114c5fc..13e409b0f 100644
--- a/lib/routes/bilibili/userFav.js
+++ b/lib/routes/bilibili/userFav.js
@@ -24,7 +24,7 @@ module.exports = async (ctx) => {
data.data.archives &&
data.data.archives.map((item) => ({
title: item.title,
- description: `${item.desc}
`,
+ description: `${item.desc}
`,
pubDate: new Date(item.fav_at * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
})),
diff --git a/lib/routes/bilibili/user_bangumi.js b/lib/routes/bilibili/user_bangumi.js
index dbf0e589e..202326776 100644
--- a/lib/routes/bilibili/user_bangumi.js
+++ b/lib/routes/bilibili/user_bangumi.js
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
data.data.list &&
data.data.list.map((item) => ({
title: `[${item.new_ep.index_show}]${item.title}`,
- description: `${item.evaluate}
`,
+ description: `${item.evaluate}
`,
pubDate: new Date(item.new_ep.pub_time ? item.new_ep.pub_time : Date.now()).toUTCString(),
link: `https://www.bilibili.com/bangumi/play/` + (item.new_ep.id ? `ep${item.new_ep.id}` : `ss${item.season_id}`),
})),
diff --git a/lib/routes/bilibili/utils.js b/lib/routes/bilibili/utils.js
index 6c5b7dcac..5c6acaf8a 100644
--- a/lib/routes/bilibili/utils.js
+++ b/lib/routes/bilibili/utils.js
@@ -20,7 +20,7 @@ const ProcessFeed = async (list, caches) =>
data = data.data[aid + ''];
const single = {
title: data.title,
- description: `${data.desc}
`,
+ description: `${data.desc}
`,
pubDate: new Date(data.pubdate * 1000).toUTCString(),
author: data.owner.name,
link: `https://www.bilibili.com/video/av${aid}`,
diff --git a/lib/routes/bilibili/video.js b/lib/routes/bilibili/video.js
index c1e7b4889..bb60fc231 100644
--- a/lib/routes/bilibili/video.js
+++ b/lib/routes/bilibili/video.js
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
data.data.vlist &&
data.data.vlist.map((item) => ({
title: item.title,
- description: `${item.description}
`,
+ description: `${item.description}
`,
pubDate: new Date(item.created * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
author: name,
diff --git a/lib/routes/bilibili/vsearch.js b/lib/routes/bilibili/vsearch.js
index 0df142669..bb0d63e70 100644
--- a/lib/routes/bilibili/vsearch.js
+++ b/lib/routes/bilibili/vsearch.js
@@ -37,7 +37,7 @@ module.exports = async (ctx) => {
`Danmaku: ${item.video_review} Comment: ${item.review}
` +
`Category: ${item.typename}
` +
`
${des}
` +
- `
` +
+ `
` +
`Tag: ${item.tag}
` +
`Match By: ${item.hit_columns.join(',')}`,
pubDate: new Date(item.pubdate * 1000).toUTCString(),
diff --git a/lib/routes/bing/index.js b/lib/routes/bing/index.js
index c038f4047..bfcec13f5 100644
--- a/lib/routes/bing/index.js
+++ b/lib/routes/bing/index.js
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
link: `https://cn.bing.com/`,
item: data.images.map((item) => ({
title: item.copyright,
- description: ``,
+ description: `
`,
link: item.copyrightlink,
})),
};
diff --git a/lib/routes/bjp/apod.js b/lib/routes/bjp/apod.js
index 6ae0b84f7..4f700285f 100644
--- a/lib/routes/bjp/apod.js
+++ b/lib/routes/bjp/apod.js
@@ -28,7 +28,7 @@ module.exports = async (ctx) => {
const content = $($('body > table')[1]);
- const image = `
`;
+ const image = `
`;
const item = {
title: $(e).attr('title'),
diff --git a/lib/routes/cartoonmad/comic.js b/lib/routes/cartoonmad/comic.js
index 5775753c6..b2e11bb43 100644
--- a/lib/routes/cartoonmad/comic.js
+++ b/lib/routes/cartoonmad/comic.js
@@ -9,7 +9,7 @@ const load = ($, baseUrl) => {
let description = '';
for (let page = 1; page <= pages; page++) {
- description += `
`;
+ description += `
`;
}
return {
description,
diff --git a/lib/routes/cctv/utils/news.js b/lib/routes/cctv/utils/news.js
index b2dc38908..bfad3de04 100644
--- a/lib/routes/cctv/utils/news.js
+++ b/lib/routes/cctv/utils/news.js
@@ -68,7 +68,7 @@ module.exports = async (category, ctx) => {
case 'PHO':
description = data.photo_album_list.reduce((description, { photo_url, photo_name, photo_brief }) => {
description += `
-
+
${photo_name}
${photo_brief}
`;
diff --git a/lib/routes/chouti/index.js b/lib/routes/chouti/index.js
index 4f4260206..1070e5790 100644
--- a/lib/routes/chouti/index.js
+++ b/lib/routes/chouti/index.js
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
const resultItem = response.data.data.map((item) => ({
title: item.title,
author: item.nick,
- description: `${item.title}
评论`,
+ description: `${item.title}
评论`,
link: item.url,
pubDate: new Date(item.createdTime / 1000).toUTCString(),
}));
diff --git a/lib/routes/coolbuy/newest.js b/lib/routes/coolbuy/newest.js
index 671608a11..ea8d8a065 100644
--- a/lib/routes/coolbuy/newest.js
+++ b/lib/routes/coolbuy/newest.js
@@ -16,8 +16,8 @@ module.exports = async (ctx) => {
title: item.title,
link: item.visit_url,
description: `
-
-
+
+
${item.summary}
价格: ${item.price}元
`,
diff --git a/lib/routes/dbmv/index.js b/lib/routes/dbmv/index.js
index be798cfc5..a19f28bdf 100644
--- a/lib/routes/dbmv/index.js
+++ b/lib/routes/dbmv/index.js
@@ -31,7 +31,7 @@ module.exports = async (ctx) => {
const single = {
title: title,
link: img_url,
- description: ``,
+ description: `
`,
};
resultItem.push(single);
}
diff --git a/lib/routes/dekudeals/index.js b/lib/routes/dekudeals/index.js
index 8e6824a99..757ec0f65 100644
--- a/lib/routes/dekudeals/index.js
+++ b/lib/routes/dekudeals/index.js
@@ -22,7 +22,7 @@ module.exports = async (ctx) => {
const img = item.find('.main-link img').attr('src');
const price = item.find('strong').html();
const oldprice = item.find('s.text-muted').html();
- const description = `
${oldprice}
${price}`;
+ const description = `${oldprice}
${price}`;
const single = {
title,
diff --git a/lib/routes/dgtle/keyword.js b/lib/routes/dgtle/keyword.js
index b9ae87ec2..752da7f99 100644
--- a/lib/routes/dgtle/keyword.js
+++ b/lib/routes/dgtle/keyword.js
@@ -43,7 +43,7 @@ module.exports = async (ctx) => {
.last()
.text()
).toUTCString();
- let description = `
`;
diff --git a/lib/routes/dgtle/trade.js b/lib/routes/dgtle/trade.js
index 5de5c264b..7c672f069 100644
--- a/lib/routes/dgtle/trade.js
+++ b/lib/routes/dgtle/trade.js
@@ -46,7 +46,7 @@ module.exports = async (ctx) => {
.last()
.text()
).toUTCString();
- let description = `
`;
diff --git a/lib/routes/dilbert/strip.js b/lib/routes/dilbert/strip.js
index 1fcd15c8e..770997535 100644
--- a/lib/routes/dilbert/strip.js
+++ b/lib/routes/dilbert/strip.js
@@ -14,7 +14,7 @@ async function load(link, id) {
const title = img.attr('alt').replace('Dilbert by Scott Adams', id);
const src = 'https:' + img.attr('src');
- const description = `
');
- const image = ``;
+ const image = `
`;
const detailResult = `${introduce}
${image}`;
// 定义description,并指定内容
diff --git a/lib/routes/douban/book/rank.js b/lib/routes/douban/book/rank.js
index 34613708e..cb2e1a35d 100644
--- a/lib/routes/douban/book/rank.js
+++ b/lib/routes/douban/book/rank.js
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
description: '每周一更新',
item: response.data.subject_collection_items.map(({ title, url, cover, info, rating, null_rating_reason }) => {
const rate = rating ? `${rating.value.toFixed(1)}分` : null_rating_reason;
- const description = `
+ const description = `
${title}/${info}/${rate}
`;
diff --git a/lib/routes/douban/bookstore.js b/lib/routes/douban/bookstore.js
index ef3d14932..aa2399906 100644
--- a/lib/routes/douban/bookstore.js
+++ b/lib/routes/douban/bookstore.js
@@ -20,8 +20,8 @@ module.exports = async (ctx) => {
title,
link: url,
description: `
-
-
+
+
${desc}
价格: ${price}元
`,
diff --git a/lib/routes/douban/commercialpress/latest.js b/lib/routes/douban/commercialpress/latest.js
index 9b980ce03..438578442 100644
--- a/lib/routes/douban/commercialpress/latest.js
+++ b/lib/routes/douban/commercialpress/latest.js
@@ -44,7 +44,7 @@ module.exports = async (ctx) => {
return {
title: $item.find('.title > a').text(),
link: $item.find('.title > a').attr('href'),
- description: `
${$item.find('.abstract').html()}`,
+ description: `
${$item.find('.abstract').html()}`,
pubDate: new Date($item.find('.time > span').attr('title')).toUTCString(),
};
})
diff --git a/lib/routes/douban/event/hot.js b/lib/routes/douban/event/hot.js
index 72abfde56..a492b8746 100644
--- a/lib/routes/douban/event/hot.js
+++ b/lib/routes/douban/event/hot.js
@@ -16,7 +16,7 @@ module.exports = async (ctx) => {
title: `豆瓣同城-热门活动-${locationId}`,
link: referer,
item: response.data.subject_collection_items.map(({ title, url, cover, subtype, info, price_range }) => {
- const description = `
+ const description = `
${info}/${subtype}/${price_range}
`;
diff --git a/lib/routes/douban/explore.js b/lib/routes/douban/explore.js
index ecd6dc67f..46b2c2383 100644
--- a/lib/routes/douban/explore.js
+++ b/lib/routes/douban/explore.js
@@ -30,7 +30,7 @@ module.exports = async (ctx) => {
description: `作者:${item
.find('.usr-pic a')
.last()
- .text()}
描述:${item.find('.content p').text()}`,
+ .text()}
描述:${item.find('.content p').text()}`,
link: item.find('.title a').attr('href'),
};
})
diff --git a/lib/routes/douban/group.js b/lib/routes/douban/group.js
index 4e27d103f..633255990 100644
--- a/lib/routes/douban/group.js
+++ b/lib/routes/douban/group.js
@@ -22,7 +22,7 @@ module.exports = async (ctx) => {
if (photo.length > 0) {
const src = photo[0].alt;
- return `
`;
+ return `
`;
} else {
return '';
}
diff --git a/lib/routes/douban/later.js b/lib/routes/douban/later.js
index da4d86137..e304dac71 100644
--- a/lib/routes/douban/later.js
+++ b/lib/routes/douban/later.js
@@ -12,7 +12,7 @@ module.exports = async (ctx) => {
link: 'https://movie.douban.com/cinema/later/',
item: movieList.map((item) => ({
title: item.title,
- description: `标题:${item.title}
影片类型:${item.genres.join(' | ')}
评分:${item.rating.stars === '00' ? '无' : item.rating.average}
`,
+ description: `标题:${item.title}
影片类型:${item.genres.join(' | ')}
评分:${item.rating.stars === '00' ? '无' : item.rating.average}
`,
link: item.alt,
})),
};
diff --git a/lib/routes/douban/latest_music.js b/lib/routes/douban/latest_music.js
index 21c7f3444..db39a8468 100644
--- a/lib/routes/douban/latest_music.js
+++ b/lib/routes/douban/latest_music.js
@@ -58,7 +58,7 @@ module.exports = async (ctx) => {
const title = `${item.title}-${item.info}`;
const link = `https://music.douban.com/subject/${item.id}/`;
const description = `
-
+
${item.recommend_comment}
评分: ${item.rating.value.toFixed(1)}
`;
diff --git a/lib/routes/douban/people/status.js b/lib/routes/douban/people/status.js
index 6d485f1e8..0b58c3fee 100644
--- a/lib/routes/douban/people/status.js
+++ b/lib/routes/douban/people/status.js
@@ -8,14 +8,14 @@ function getContentByActivity(status) {
title = `${status.author.name} ${status.activity}:${status.text}`;
description = status.text;
status.images.forEach((image) => {
- description += `
评分:${itemScore}
片长:${item.attr('data-duration')}
制片国家/地区:${item.attr('data-region')}
导演:${item.attr(
'data-director'
- )}
主演:${item.attr('data-actors')}`,
+ )}
主演:${item.attr('data-actors')}`,
link: `https://movie.douban.com/subject/${item.attr('id')}`,
};
} else {
diff --git a/lib/routes/douban/topic.js b/lib/routes/douban/topic.js
index b2c457669..7c76b9fc9 100644
--- a/lib/routes/douban/topic.js
+++ b/lib/routes/douban/topic.js
@@ -37,7 +37,7 @@ module.exports = async (ctx) => {
if (images) {
let i;
for (i in images) {
- description += `
`;
+ description += `
`;
}
}
} else {
diff --git a/lib/routes/douban/ustop.js b/lib/routes/douban/ustop.js
index 240f810a0..68f62698d 100644
--- a/lib/routes/douban/ustop.js
+++ b/lib/routes/douban/ustop.js
@@ -14,7 +14,7 @@ module.exports = async (ctx) => {
item = item.subject;
return {
title: item.title,
- description: `标题:${item.title}
影片类型:${item.genres.join(' | ')}
评分:${item.rating.stars === '00' ? '无' : item.rating.average}
`,
+ description: `标题:${item.title}
影片类型:${item.genres.join(' | ')}
评分:${item.rating.stars === '00' ? '无' : item.rating.average}
`,
link: item.alt,
};
}),
diff --git a/lib/routes/douyin/utils.js b/lib/routes/douyin/utils.js
index d105d31f8..46f656575 100644
--- a/lib/routes/douyin/utils.js
+++ b/lib/routes/douyin/utils.js
@@ -11,7 +11,7 @@ const formatItem = (item) => {
content = item.image_infos.reduce((acc, item) => {
const imgUrl = item.label_large.url_list[0].replace('.webp', '.png');
acc += `
-
+
`;
return acc;
}, '');
diff --git a/lib/routes/dribbble/utils.js b/lib/routes/dribbble/utils.js
index c3b211ffd..e785b7eeb 100644
--- a/lib/routes/dribbble/utils.js
+++ b/lib/routes/dribbble/utils.js
@@ -27,7 +27,7 @@ module.exports = {
item = $(item);
return {
title: item.find('.dribbble-over strong').text(),
- description: `
diff --git a/lib/routes/dsndsht23/index.js b/lib/routes/dsndsht23/index.js
index 864d462e3..13665830d 100644
--- a/lib/routes/dsndsht23/index.js
+++ b/lib/routes/dsndsht23/index.js
@@ -74,7 +74,7 @@ module.exports = async (ctx) => {
if (!$(images[k]).attr('file') || $(images[k]).attr('file') === 'undefined') {
$(images[k]).replaceWith('');
} else {
- $(images[k]).replaceWith(``);
+ $(images[k]).replaceWith(`
`);
}
}
const description = postMessage.html();
diff --git a/lib/routes/dsndsht23/pictures.js b/lib/routes/dsndsht23/pictures.js
index 6d2027db0..b942d3cda 100644
--- a/lib/routes/dsndsht23/pictures.js
+++ b/lib/routes/dsndsht23/pictures.js
@@ -62,8 +62,8 @@ module.exports = async (ctx) => {
if (!$(images[k]).attr('file') || $(images[k]).attr('file') === 'undefined') {
$(images[k]).replaceWith('');
} else {
- // $(images[k]).replaceWith(`
`);
- description += `
`;
+ // $(images[k]).replaceWith(`
`);
+ description += `
`;
}
}
// const description = postMessage.html();
diff --git a/lib/routes/eastday/sh.js b/lib/routes/eastday/sh.js
index ed432ec22..117556d0d 100644
--- a/lib/routes/eastday/sh.js
+++ b/lib/routes/eastday/sh.js
@@ -13,7 +13,7 @@ module.exports = async (ctx) => {
const result = await Promise.all(
data.newslist.map(async (item) => {
const link = item.newsurl.match(/^http/) ? item.newsurl : domain + item.newsurl;
- const description = item.imgurl1 ? `
` : '';
+ const description = item.imgurl1 ? `
` : '';
const entity = {
title: item.newstitle,
author: item.source,
diff --git a/lib/routes/facebook/page.js b/lib/routes/facebook/page.js
index 31a27a81d..77a400200 100644
--- a/lib/routes/facebook/page.js
+++ b/lib/routes/facebook/page.js
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
const d = await getArticle('https://mbasic.facebook.com' + url);
return {
title: d.title,
- description: d.imgs.map((u) => ``).join('
') + '
' + d.content.replace(/\n/g, '
'),
+ description: d.imgs.map((u) => ``).join('
') + '
' + d.content.replace(/\n/g, '
'),
link: d.url,
};
})
diff --git a/lib/routes/ff14/ff14_zh.js b/lib/routes/ff14/ff14_zh.js
index 919ccf29a..8170ff025 100644
--- a/lib/routes/ff14/ff14_zh.js
+++ b/lib/routes/ff14/ff14_zh.js
@@ -30,7 +30,7 @@ module.exports = async (ctx) => {
title: Title,
link: Author,
description: `
-
+
${Summary}
${PublishDate}`,
})),
diff --git a/lib/routes/ft/utils.js b/lib/routes/ft/utils.js
index 4d4ce9166..9ed4652e3 100644
--- a/lib/routes/ft/utils.js
+++ b/lib/routes/ft/utils.js
@@ -10,7 +10,7 @@ const ProcessFeed = ($, link) => {
content.find('div.story-image > figure').each((i, e) => {
const src = `https://www.ft.com/__origami/service/image/v2/images/raw/${encodeURIComponent(e.attribs['data-url'])}?source=ftchinese&width=800&fit=cover`;
- $(``).insertAfter(content.find('div.story-lead')[0]);
+ $(`
`).insertAfter(content.find('div.story-lead')[0]);
});
// 付费文章跳转
diff --git a/lib/routes/galgame/sayhuahuo.js b/lib/routes/galgame/sayhuahuo.js
index 6acd7cd87..555585ce2 100644
--- a/lib/routes/galgame/sayhuahuo.js
+++ b/lib/routes/galgame/sayhuahuo.js
@@ -14,7 +14,7 @@ module.exports = async (ctx) => {
description: '花火学园',
item: data.map((item) => ({
title: item.title,
- description: `
`,
+ description: `
`,
pubDate: new Date(parseInt(item.date.substr(0, 4)), parseInt(item.date.substr(4, 2)), parseInt(item.date.substr(6, 2))).toUTCString(),
link: item.url,
})),
diff --git a/lib/routes/gaoqingla/latest.js b/lib/routes/gaoqingla/latest.js
index 846e6b2c2..15b6b38f6 100644
--- a/lib/routes/gaoqingla/latest.js
+++ b/lib/routes/gaoqingla/latest.js
@@ -23,7 +23,7 @@ module.exports = async (ctx) => {
link: $(ele).attr('href'),
description: `
${title}
-
+
`.trim(),
};
})
diff --git a/lib/routes/github/follower.js b/lib/routes/github/follower.js
index a42adbe37..6ee05aa4b 100644
--- a/lib/routes/github/follower.js
+++ b/lib/routes/github/follower.js
@@ -42,7 +42,7 @@ module.exports = async (ctx) => {
link: host,
item: data.map((follower) => ({
title: `${follower.node.login} started following ${user}`,
- description: `${follower.node.login}
`,
+ description: `${follower.node.login}
`,
link: `https://github.com/${follower.node.login}`,
})),
};
diff --git a/lib/routes/github/star.js b/lib/routes/github/star.js
index b89724ef1..f1dd55ef0 100644
--- a/lib/routes/github/star.js
+++ b/lib/routes/github/star.js
@@ -43,7 +43,7 @@ module.exports = async (ctx) => {
link: host,
item: data.map((follower) => ({
title: `${follower.node.login} starred ${user}/${repo}`,
- description: `${follower.node.login}
`,
+ description: `${follower.node.login}
`,
link: `https://github.com/${follower.node.login}`,
})),
};
diff --git a/lib/routes/gnn/gnn.js b/lib/routes/gnn/gnn.js
index 1d2c5884f..80b7765b8 100644
--- a/lib/routes/gnn/gnn.js
+++ b/lib/routes/gnn/gnn.js
@@ -26,7 +26,7 @@ module.exports = async (ctx) => {
item = $(item);
return {
title: item.find('.GN-lbox2D').text(),
- description: item.find('.GN-lbox2C').text() + '
',
+ description: item.find('.GN-lbox2C').text() + '
',
pubDate: new Date(item.find('.time').data('shared-at')).toUTCString(),
link: item.find('.GN-lbox2D a').attr('href'),
};
diff --git a/lib/routes/google/doodles.js b/lib/routes/google/doodles.js
index 8e91cf6b8..7878fd2d8 100644
--- a/lib/routes/google/doodles.js
+++ b/lib/routes/google/doodles.js
@@ -25,7 +25,7 @@ module.exports = async (ctx) => {
return {
title: item.title,
- description: `
${item.share_text}`,
+ description: `
${item.share_text}`,
pubDate: new Date(date).toUTCString(),
guid: item.url,
link: `https://www.google.com/search?q=${encodeURIComponent(item.query)}`,
diff --git a/lib/routes/gouhuo/index.js b/lib/routes/gouhuo/index.js
index 01194bf63..d6a0acf87 100644
--- a/lib/routes/gouhuo/index.js
+++ b/lib/routes/gouhuo/index.js
@@ -52,7 +52,7 @@ module.exports = async (ctx) => {
list.map((item) => {
const single = {
title: item.title,
- description: `${item.title}`, // Get fulltext manually if needs be. Snippet like: $('.widget-article').first().html();
+ description: `${item.title}
`, // Get fulltext manually if needs be. Snippet like: $('.widget-article').first().html();
pubDate: new Date(item.publish_ts * 1000).toUTCString(),
link: item.link,
};
diff --git a/lib/routes/gouhuo/strategy.js b/lib/routes/gouhuo/strategy.js
index 6355b3fdd..fcde1691b 100644
--- a/lib/routes/gouhuo/strategy.js
+++ b/lib/routes/gouhuo/strategy.js
@@ -20,7 +20,7 @@ module.exports = async (ctx) => {
const img_url = item.media_list && item.media_list[0].img_url;
const single = {
title: item.title,
- description: `${item.summary}
`,
+ description: `${item.summary}
`,
pubDate: new Date(item.edit_time * 1000).toUTCString(),
link: `${url}/detail/${item.topic_id}`,
};
diff --git a/lib/routes/gracg/user.js b/lib/routes/gracg/user.js
index 387c03142..46d64ea14 100644
--- a/lib/routes/gracg/user.js
+++ b/lib/routes/gracg/user.js
@@ -66,7 +66,7 @@ module.exports = async (ctx) => {
*/
function generateItemDesc(pics) {
const itemDesc = pics.reduce((acc, pic) => {
- acc += `
`;
return acc;
}, '');
return itemDesc;
diff --git a/lib/routes/guardian/utils.js b/lib/routes/guardian/utils.js
index 1392b178e..3dc85d4d1 100644
--- a/lib/routes/guardian/utils.js
+++ b/lib/routes/guardian/utils.js
@@ -11,7 +11,7 @@ const ProcessFeed = (data) => {
content.find('.element-image').each((i, e) => {
const pic = $(e).find('img');
- let rpic = ``,
+ description: `${item.summary}
`,
pubDate: item.date_published,
link: item.url,
author: item.author.nickname,
diff --git a/lib/routes/hanime/video.js b/lib/routes/hanime/video.js
index 2237e2ef9..058281647 100644
--- a/lib/routes/hanime/video.js
+++ b/lib/routes/hanime/video.js
@@ -54,11 +54,11 @@ module.exports = async (ctx) => {
'Description: '.bold() +
videoDescription +
'
' +
- '' +
'
' +
- '',
link: videoUrl,
diff --git a/lib/routes/hpoi/index.js b/lib/routes/hpoi/index.js
index a122c3222..f0bb36fe0 100644
--- a/lib/routes/hpoi/index.js
+++ b/lib/routes/hpoi/index.js
@@ -40,7 +40,7 @@ module.exports = async (ctx) => {
return {
title: _item.find('.detail-grid-title').text(),
link: host + '/' + _item.find('.detail-grid-title a').attr('href'),
- description: `
${_item
+ description: `
${_item
.find('.detail-grid-info span')
.eq(0)
.text()}
${_item
diff --git a/lib/routes/icourse163/newest.js b/lib/routes/icourse163/newest.js
index 7bc21b5de..b1c7dd268 100644
--- a/lib/routes/icourse163/newest.js
+++ b/lib/routes/icourse163/newest.js
@@ -51,7 +51,7 @@ module.exports = async (ctx) => {
>


















评分:${item.find('.img-box span').text()}
`; return { diff --git a/lib/routes/qidian/free.js b/lib/routes/qidian/free.js index 750912dfa..7d3720ea2 100644 --- a/lib/routes/qidian/free.js +++ b/lib/routes/qidian/free.js @@ -24,7 +24,7 @@ module.exports = async (ctx) => { .map((index, item) => { item = $(item); - const img = `评分:${item.find('.score').text()}
`; const update = ` a').attr('href')}>${item.find('p.update > a').text()}`; diff --git a/lib/routes/rs05/rs05.js b/lib/routes/rs05/rs05.js index 3fe1656de..a58cbc043 100644 --- a/lib/routes/rs05/rs05.js +++ b/lib/routes/rs05/rs05.js @@ -26,7 +26,7 @@ module.exports = async (ctx) => { item = $(item); return { title: item.find('.intro h2 a').attr('title'), - description: item.find('.brief').text() + '
Rating:${post.rating}
Score:${post.score}
`); if (post.source) { result.push(`Source`); diff --git a/lib/routes/youku/channel.js b/lib/routes/youku/channel.js index 46c4b96cc..37b44634a 100644 --- a/lib/routes/youku/channel.js +++ b/lib/routes/youku/channel.js @@ -42,7 +42,7 @@ module.exports = async (ctx) => { description: ` ${embed ? iframe : ''}${contentItem.own_text}
`; } else if (contentItem.type === 'image') { - images.push(`${detail.intro}
${detail.intro}
})
})
`;
+ description += `
`;
break;
case 'video':
@@ -27,7 +27,7 @@ module.exports = {
break;
case 'link':
- description += ``;
+ description += ``;
break;
default:
diff --git a/lib/routes/zhihu/zhuanlan.js b/lib/routes/zhihu/zhuanlan.js
index 7d943df76..afe3a1ae7 100644
--- a/lib/routes/zhihu/zhuanlan.js
+++ b/lib/routes/zhihu/zhuanlan.js
@@ -87,7 +87,7 @@ module.exports = async (ctx) => {
item: articles,
// list.map((item) => ({
// title: item.title,
- // description: item.content.replace(/ src="/g, ' referrerpolicy="no-referrer" src="https://pic4.zhimg.com/'),
+ // description: item.content.replace(/ src="/g, ' src="https://pic4.zhimg.com/'),
// pubDate: new Date(item.publishedTime).toUTCString(),
// link: `https://zhuanlan.zhihu.com${item.url}`,
// })),
diff --git a/lib/routes/ziroom/room.js b/lib/routes/ziroom/room.js
index a2dd8749c..11555de6c 100644
--- a/lib/routes/ziroom/room.js
+++ b/lib/routes/ziroom/room.js
@@ -44,7 +44,7 @@ module.exports = async (ctx) => {
description: `自如的${keyword}${iswhole !== '0' ? '整租' : '合租'}${room}室房源`,
item: data.map((item) => ({
title: item.title,
- description: `${item.room_name}