Add: anigamer (#1174)
This commit is contained in:
@@ -1062,6 +1062,12 @@ GitHub 官方也提供了一些 RSS:
|
||||
|
||||
<route name="搜尋" author="maple3142" example="/anime1/search/兔女郎學姊" path="/anime1/search/:keyword" :paramsDesc="['关键字']"/>
|
||||
|
||||
### 動畫瘋
|
||||
|
||||
<route name="最後更新" author="maple3142" example="/anigamer/new_anime" path="/anigamer/new_anime"/>
|
||||
|
||||
<route name="動畫" author="maple3142" example="/anigamer/anime/90003" path="/anigamer/anime/:sn" :paramsDesc="['動畫 sn']"/>
|
||||
|
||||
## 程序更新
|
||||
|
||||
### RSSHub
|
||||
|
||||
@@ -853,4 +853,8 @@ router.get('/javbus/western/home', require('./routes/javbus/western/home'));
|
||||
router.get('/javbus/western/genre/:gid', require('./routes/javbus/western/genre'));
|
||||
router.get('/javbus/western/star/:sid', require('./routes/javbus/western/star'));
|
||||
|
||||
// 動畫瘋
|
||||
router.get('/anigamer/new_anime', require('./routes/anigamer/new_anime'));
|
||||
router.get('/anigamer/anime/:sn', require('./routes/anigamer/anime'));
|
||||
|
||||
module.exports = router;
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
const axios = require('../../utils/axios');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const { anime } = await axios.get(`https://api.gamer.com.tw/mobile_app/anime/v1/video.php?sn=0&anime_sn=${ctx.params.sn}`).then((r) => r.data);
|
||||
ctx.state.data = {
|
||||
title: anime.title,
|
||||
link: `https://ani.gamer.com.tw/animeRef.php?sn=${anime.anime_sn}`,
|
||||
description: anime.content,
|
||||
item: anime.volumes[0].map((item) => ({
|
||||
title: `${anime.title} 第 ${item.volume} 集`,
|
||||
link: `https://ani.gamer.com.tw/animeVideo.php?sn=${item.video_sn}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
const axios = require('../../utils/axios');
|
||||
const { DateTime } = require('luxon');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const { new_anime } = await axios.get('https://api.gamer.com.tw/mobile_app/anime/v1/index.php').then((r) => r.data);
|
||||
ctx.state.data = {
|
||||
title: '動畫瘋最後更新',
|
||||
link: 'https://ani.gamer.com.tw/',
|
||||
item: new_anime.date.map((item) => ({
|
||||
title: item.title,
|
||||
description: item.info,
|
||||
link: `https://ani.gamer.com.tw/animeRef.php?sn=${item.anime_sn}`,
|
||||
pubDate: DateTime.fromFormat(item.info.split(' ')[0], 'mm/dd').toRFC2822(),
|
||||
})),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user