mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-16 02:42:57 +08:00
增加: TSSstatus (#1119)
* 增加:有品-每日上新 * 修复 summary 字段错误 * 将 youpin 模块转移至 mi 目录下,并更新文档 * 增加: TSSstatus
This commit is contained in:
@@ -2284,3 +2284,9 @@ category 对应的关键词有
|
||||
|
||||
|
||||
<route name="经济观察网" author="epirus" example="/eeo/观察家" path="/eeo/:category" :paramsDesc="['分类']"/>
|
||||
|
||||
### TSSstatus
|
||||
|
||||
<route name="Status" author="xyqfer" example="/tssstatus/j42dap/14W585a" path="/tssstatus/:board/:build" :paramsDesc="['平台 id', '版本 id']"/>
|
||||
|
||||
> board 和 build 可在[这里](http://api.ineal.me/tss/status)查看
|
||||
|
||||
@@ -787,6 +787,9 @@ router.get('/eeo/:category?', require('./routes/eeo/index'));
|
||||
// 腾讯视频
|
||||
router.get('/tencentvideo/playlist/:id', require('./routes/tencent/video/playlist'));
|
||||
|
||||
// TSSstatus
|
||||
router.get('/tssstatus/:board/:build', require('./routes/tssstatus'));
|
||||
|
||||
// Anime1
|
||||
router.get('/anime1/anime/:time/:name', require('./routes/anime1/anime'));
|
||||
router.get('/anime1/search/:keyword', require('./routes/anime1/search'));
|
||||
|
||||
35
routes/tssstatus/index.js
Normal file
35
routes/tssstatus/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const axios = require('../../utils/axios');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const { board, build } = ctx.params;
|
||||
const response = await axios({
|
||||
method: 'get',
|
||||
url: `http://api.ineal.me/tss/${board}/${build}`,
|
||||
});
|
||||
|
||||
const resultItem = Object.values(response.data).map((item) => {
|
||||
const firmware = item.firmwares[0];
|
||||
const description = `
|
||||
<strong>signing:</strong> ${firmware.signing.toString()}<br>
|
||||
<strong>started:</strong> ${firmware.started}<br>
|
||||
<strong>stopped:</strong> ${firmware.stopped}<br>
|
||||
<strong>model:</strong> ${item.model}<br>
|
||||
<strong>board:</strong> ${item.board}<br>
|
||||
<strong>version:</strong> ${firmware.version}<br>
|
||||
<strong>build:</strong> ${firmware.build}<br>
|
||||
`;
|
||||
|
||||
return {
|
||||
title: `signing: ${firmware.signing.toString()}-${item.model}-${firmware.version}`,
|
||||
description,
|
||||
guid: `${firmware.started} / ${firmware.stopped}`,
|
||||
};
|
||||
});
|
||||
|
||||
ctx.state.data = {
|
||||
title: 'TSSstatus',
|
||||
link: 'http://api.ineal.me/tss/status',
|
||||
description: "Real time status of every iOS firmware currently being signed by Apple's TSS server.",
|
||||
item: resultItem,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user