Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 17, 2023
1 parent 3a0757b commit e5401c5
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 35 deletions.
12 changes: 6 additions & 6 deletions docs/anime.md
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,12 @@ Sources

</Route>

## 偶像荣耀

### 新闻推送

<Route author="Mingxia1" example="/idolypride/news" path="/idolypride/news" radar="1" rssbud="1"/>

## 三界异次元

### 三界异次元
Expand Down Expand Up @@ -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"/>
12 changes: 6 additions & 6 deletions docs/en/anime.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"/>
2 changes: 1 addition & 1 deletion lib/v2/idolypride/maintainer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
'/news': ['Mingxia1'],
};
};
29 changes: 13 additions & 16 deletions lib/v2/idolypride/news.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
};
}),
};
};
};
10 changes: 5 additions & 5 deletions lib/v2/idolypride/radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
],
},
};
2 changes: 1 addition & 1 deletion lib/v2/idolypride/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = (router) => {
router.get('/news', require('./news'));
};
};

0 comments on commit e5401c5

Please sign in to comment.