diff --git a/docs/en/new-media.md b/docs/en/new-media.md
index b0f99082a..96a60f2a2 100644
--- a/docs/en/new-media.md
+++ b/docs/en/new-media.md
@@ -394,6 +394,12 @@ Compared to the official one, this feed:
+## Sky Sports
+
+### News
+
+\
+
## Soomal
### 话题
@@ -420,12 +426,6 @@ Compared to the official one, this feed:
-## Sky Sports
-
-### News
-
-\
-
## The Brain
### Blog
diff --git a/docs/new-media.md b/docs/new-media.md
index a4c210815..906c58f48 100644
--- a/docs/new-media.md
+++ b/docs/new-media.md
@@ -609,6 +609,12 @@ IPFS 网关有可能失效,那时候换成其他网关。
+## Sky Sports
+
+### News
+
+
+
## SocialBeta
### 首页
@@ -645,12 +651,6 @@ IPFS 网关有可能失效,那时候换成其他网关。
-## Sky Sports
-
-### News
-
-
-
## TANC 艺术新闻
### 分类
@@ -2532,18 +2532,6 @@ column 为 third 时可选的 category:
-## 中国计算机学会
-
-### 新闻
-
-
-
-| CCF 新闻 | CCF 聚焦 | ACM 信息 |
-| ---------- | -------- | -------- |
-| Media_list | Focus | ACM_News |
-
-
-
## 中国机械工程学会
### 学会新闻
@@ -2568,6 +2556,18 @@ column 为 third 时可选的 category:
+## 中国计算机学会
+
+### 新闻
+
+
+
+| CCF 新闻 | CCF 聚焦 | ACM 信息 |
+| ---------- | -------- | -------- |
+| Media_list | Focus | ACM_News |
+
+
+
## 中国科学院青年创新促进会
### 最新博文
diff --git a/lib/routes/skysports/news.js b/lib/routes/skysports/news.js
index 7a0d79e7b..b03bb8cde 100644
--- a/lib/routes/skysports/news.js
+++ b/lib/routes/skysports/news.js
@@ -26,22 +26,22 @@ module.exports = async (ctx) => {
.get();
const items = await Promise.all(
- list.map(
- (item) => ctx.cache.tryGet(item.link, async () => {
- const detailResponse = await got({
- method: 'get',
- url: item.link,
- });
+ list.map((item) =>
+ ctx.cache.tryGet(item.link, async () => {
+ const detailResponse = await got({
+ method: 'get',
+ url: item.link,
+ });
- const content = cheerio.load(detailResponse.data);
+ const content = cheerio.load(detailResponse.data);
- content('.sdc-article-widget, .sdc-site-layout-sticky-region').remove();
+ content('.sdc-article-widget, .sdc-site-layout-sticky-region').remove();
- item.description = content('.sdc-article-body').html();
- item.pubDate = parseDate(detailResponse.data.match(/"datePublished": "(.*)","dateModified"/)[1]);
+ item.description = content('.sdc-article-body').html();
+ item.pubDate = parseDate(detailResponse.data.match(/"datePublished": "(.*)","dateModified"/)[1]);
- return item;
- })
+ return item;
+ })
)
);
diff --git a/lib/routes/soul/hot.js b/lib/routes/soul/hot.js
index b477b276f..5800ec103 100644
--- a/lib/routes/soul/hot.js
+++ b/lib/routes/soul/hot.js
@@ -16,7 +16,6 @@ const generateResponse = async (items) => ({
})),
});
-
module.exports = async (ctx) => {
// 根据不同用户瞬间会得到不同的结果,这里提供一些例子
const defaultPid = 'NXJiSlM5V21kamJWVlgvZUh1NEExdz09';
@@ -69,7 +68,7 @@ module.exports = async (ctx) => {
allItems.push(...items);
});
- const uniqAllItems = allItems.filter((value, idx, arr) => arr.findIndex((item) => (item.pId === value.pId)) === idx);
+ const uniqAllItems = allItems.filter((value, idx, arr) => arr.findIndex((item) => item.pId === value.pId) === idx);
ctx.state.data = await generateResponse(uniqAllItems);
};