From e5401c5a7c0bf804995cc257a42868bdff24b4c6 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 17 Mar 2023 15:20:26 +0000
Subject: [PATCH] style: auto format
---
docs/anime.md | 12 ++++++------
docs/en/anime.md | 12 ++++++------
lib/v2/idolypride/maintainer.js | 2 +-
lib/v2/idolypride/news.js | 29 +++++++++++++----------------
lib/v2/idolypride/radar.js | 10 +++++-----
lib/v2/idolypride/router.js | 2 +-
6 files changed, 32 insertions(+), 35 deletions(-)
diff --git a/docs/anime.md b/docs/anime.md
index c90672e28..76935e9ca 100644
--- a/docs/anime.md
+++ b/docs/anime.md
@@ -750,6 +750,12 @@ Sources
+## 偶像荣耀
+
+### 新闻推送
+
+
+
## 三界异次元
### 三界异次元
@@ -831,9 +837,3 @@ Sources
### 當季新番
-
-## 偶像荣耀
-
-### 新闻推送
-
-
diff --git a/docs/en/anime.md b/docs/en/anime.md
index 3ee667a9d..619170ac0 100644
--- a/docs/en/anime.md
+++ b/docs/en/anime.md
@@ -46,6 +46,12 @@ For more tags, please go to [Search torrent](https://bangumi.moe/search/index)
+## IDOLY PRIDE
+
+### News
+
+
+
## iwara
### User
@@ -275,9 +281,3 @@ You can use some RSS parsing libraries (like `feedpraser` in `Python`) to receiv
### Origins Search
-
-## IDOLY PRIDE
-
-### News
-
-
diff --git a/lib/v2/idolypride/maintainer.js b/lib/v2/idolypride/maintainer.js
index 14d9cf4db..d58925f9a 100644
--- a/lib/v2/idolypride/maintainer.js
+++ b/lib/v2/idolypride/maintainer.js
@@ -1,3 +1,3 @@
module.exports = {
'/news': ['Mingxia1'],
-};
\ No newline at end of file
+};
diff --git a/lib/v2/idolypride/news.js b/lib/v2/idolypride/news.js
index ab41ec532..b49ba727a 100644
--- a/lib/v2/idolypride/news.js
+++ b/lib/v2/idolypride/news.js
@@ -3,7 +3,6 @@ const { parseDate } = require('@/utils/parse-date');
const timezone = require('@/utils/timezone');
module.exports = async (ctx) => {
-
const response = await got({
method: 'get',
url: 'https://idolypride.jp/wp-json/wp/v2/news',
@@ -13,20 +12,18 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: '偶像荣耀-新闻',
link: 'https://idolypride.jp/news',
- item:
- list
- .map((item) => {
- const title = item.title.rendered;
- const link = item.link;
- const pubDate = timezone(parseDate(item.date_gmt), 0);
- const rendered = item.content.rendered;
+ item: list.map((item) => {
+ const title = item.title.rendered;
+ const link = item.link;
+ const pubDate = timezone(parseDate(item.date_gmt), 0);
+ const rendered = item.content.rendered;
- return {
- title,
- link,
- pubDate,
- description: rendered,
- };
- }),
+ return {
+ title,
+ link,
+ pubDate,
+ description: rendered,
+ };
+ }),
};
-};
\ No newline at end of file
+};
diff --git a/lib/v2/idolypride/radar.js b/lib/v2/idolypride/radar.js
index 6275c6b8e..6e81b6699 100644
--- a/lib/v2/idolypride/radar.js
+++ b/lib/v2/idolypride/radar.js
@@ -6,8 +6,8 @@ module.exports = {
title: '新闻',
docs: 'https://docs.rsshub.app/anime.html#ou-xiang-rong-yao',
source: '/news',
- target: '/idolypride/news'
- }
- ]
- }
-};
\ No newline at end of file
+ target: '/idolypride/news',
+ },
+ ],
+ },
+};
diff --git a/lib/v2/idolypride/router.js b/lib/v2/idolypride/router.js
index d1acb959a..630036b8e 100644
--- a/lib/v2/idolypride/router.js
+++ b/lib/v2/idolypride/router.js
@@ -1,3 +1,3 @@
module.exports = (router) => {
router.get('/news', require('./news'));
-};
\ No newline at end of file
+};