style: auto format

This commit is contained in:
github-actions[bot] 2023-03-17 15:20:26 +00:00
parent 3a0757bb87
commit e5401c5a7c
6 changed files with 32 additions and 35 deletions

View File

@ -750,6 +750,12 @@ Sources
</Route>
## 偶像荣耀
### 新闻推送
<Route author="Mingxia1" example="/idolypride/news" path="/idolypride/news" radar="1" rssbud="1"/>
## 三界异次元
### 三界异次元
@ -831,9 +837,3 @@ Sources
### 當季新番
<Route author="devinmugen" example="/bangumi/online" path="/bangumi/online"/>
## 偶像荣耀
### 新闻推送
<Route author="Mingxia1" example="/idolypride/news" path="/idolypride/news" radar="1" rssbud="1"/>

View File

@ -46,6 +46,12 @@ For more tags, please go to [Search torrent](https://bangumi.moe/search/index)
<RouteEn author="EsuRt" example="/hanime/video" path="/hanime/video"/>
## IDOLY PRIDE
### News
<RouteEn author="Mingxia1" example="/idolypride/news" path="/idolypride/news" radar="1" rssbud="1"/>
## iwara
### User
@ -275,9 +281,3 @@ You can use some RSS parsing libraries (like `feedpraser` in `Python`) to receiv
### Origins Search
<RouteEn author="xueli-sherryli" example="/oreno3d/origins/3/latest/1" path="/oreno3d/origins/:originid/:sort/:pagelimit?" :paramsDesc="['Origin id, can be found in URL' , 'Sort method, see the table above', 'The maximum number of pages to be crawled, the default is 1']" radar="1" rssbud="1"/>
## IDOLY PRIDE
### News
<RouteEn author="Mingxia1" example="/idolypride/news" path="/idolypride/news" radar="1" rssbud="1"/>

View File

@ -1,3 +1,3 @@
module.exports = {
'/news': ['Mingxia1'],
};
};

View File

@ -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,
};
}),
};
};
};

View File

@ -6,8 +6,8 @@ module.exports = {
title: '新闻',
docs: 'https://docs.rsshub.app/anime.html#ou-xiang-rong-yao',
source: '/news',
target: '/idolypride/news'
}
]
}
};
target: '/idolypride/news',
},
],
},
};

View File

@ -1,3 +1,3 @@
module.exports = (router) => {
router.get('/news', require('./news'));
};
};