diff --git a/lib/routes/141jav/index.ts b/lib/routes/141jav/index.ts index 2daa0421b..3429652ae 100644 --- a/lib/routes/141jav/index.ts +++ b/lib/routes/141jav/index.ts @@ -10,9 +10,43 @@ import { art } from '@/utils/render'; import * as path from 'node:path'; export const route: Route = { - path: '*', - name: 'Unknown', - maintainers: [], + path: '/{.*}?', + categories: ['multimedia'], + name: '通用', + maintainers: ['cgkings', 'nczitzk'], + description: `**类型** + + | 最新 | 热门 | 随机 | 指定演员 | 指定标签 | + | ---- | ------- | ------ | -------- | -------- | + | new | popular | random | actress | tag | + + **关键词** + + | 空 | 日期范围 | 演员名 | 标签名 | + | -- | ----------- | ------------ | -------------- | + | | 7 / 30 / 60 | Yua%20Mikami | Adult%20Awards | + + **示例说明** + + - \`/141jav/new\` + + 仅当类型为 \`new\` \`popular\` 或 \`random\` 时关键词为 **空** + + - \`/141jav/popular/30\` + + \`popular\` \`random\` 类型的关键词可填写 \`7\` \`30\` 或 \`60\` 三个 **日期范围** 之一,分别对应 **7 天**、**30 天** 或 **60 天内** + + - \`/141jav/actress/Yua%20Mikami\` + + \`actress\` 类型的关键词必须填写 **演员名** ,可在 [此处](https://141jav.com/actress) 演员单页链接中获取 + + - \`/141jav/tag/Adult%20Awards\` + + \`tag\` 类型的关键词必须填写 **标签名** 且标签中的 \`/\` 必须替换为 \`%2F\` ,可在 [此处](https://141jav.com/tag) 标签单页链接中获取 + + - \`/141jav/date/2020/07/30\` + + \`date\` 类型的关键词必须填写 **日期**`, handler, }; diff --git a/lib/routes/141ppv/index.ts b/lib/routes/141ppv/index.ts index ab65dfcf6..64117f7b6 100644 --- a/lib/routes/141ppv/index.ts +++ b/lib/routes/141ppv/index.ts @@ -10,10 +10,44 @@ import { art } from '@/utils/render'; import * as path from 'node:path'; export const route: Route = { - path: '*', - name: 'Unknown', - maintainers: [], + path: '/{.*}?', + categories: ['multimedia'], + name: '通用', + maintainers: ['cgkings', 'nczitzk'], handler, + description: `**类型** + + | 最新 | 热门 | 随机 | 指定演员 | 指定标签 | + | ---- | ------- | ------ | -------- | -------- | + | new | popular | random | actress | tag | + + **关键词** + + | 空 | 日期范围 | 演员名 | 标签名 | + | -- | ----------- | ------------ | -------------- | + | | 7 / 30 / 60 | Yua%20Mikami | Adult%20Awards | + + **示例说明** + + - \`/141ppv/new\` + + 仅当类型为 \`new\` \`popular\` 或 \`random\` 时关键词为 **空** + + - \`/141ppv/popular/30\` + + \`popular\` \`random\` 类型的关键词可填写 \`7\` \`30\` 或 \`60\` 三个 **日期范围** 之一,分别对应 **7 天**、**30 天** 或 **60 天内** + + - \`/141ppv/actress/Yua%20Mikami\` + + \`actress\` 类型的关键词必须填写 **演员名** ,可在 [此处](https://141ppv.com/actress) 演员单页链接中获取 + + - \`/141ppv/tag/Adult%20Awards\` + + \`tag\` 类型的关键词必须填写 **标签名** 且标签中的 \`/\` 必须替换为 \`%2F\` ,可在 [此处](https://141ppv.com/tag) 标签单页链接中获取 + + - \`/141ppv/date/2020/07/30\` + + \`date\` 类型的关键词必须填写 **日期**`, }; async function handler(ctx) { diff --git a/lib/routes/163/music/userevents.ts b/lib/routes/163/music/userevents.ts index d510e4602..32ae7db5a 100644 --- a/lib/routes/163/music/userevents.ts +++ b/lib/routes/163/music/userevents.ts @@ -9,7 +9,8 @@ const renderDescription = (info) => art(path.join(__dirname, '../templates/music export const route: Route = { path: '/music/user/events/:id', - name: 'Unknown', + categories: ['multimedia'], + name: '用户动态', maintainers: ['Master-Hash'], handler, }; diff --git a/lib/routes/1point3acres/thread.ts b/lib/routes/1point3acres/thread.ts index 85f41248d..6940d7536 100644 --- a/lib/routes/1point3acres/thread.ts +++ b/lib/routes/1point3acres/thread.ts @@ -4,7 +4,8 @@ import { rootUrl, apiRootUrl, types, ProcessThreads } from './utils'; export const route: Route = { path: ['/post/:type?/:order?', '/thread/:type?/:order?'], - name: 'Unknown', + name: '帖子', + categories: ['bbs'], maintainers: ['EthanWng97', 'DIYgod', 'nczitzk'], handler, url: 'instant.1point3acres.com/', diff --git a/lib/routes/36kr/index.ts b/lib/routes/36kr/index.ts index b29827e22..dd2740243 100644 --- a/lib/routes/36kr/index.ts +++ b/lib/routes/36kr/index.ts @@ -17,9 +17,10 @@ const shortcuts = { }; export const route: Route = { - path: '*', - name: 'Unknown', - maintainers: [], + path: '/{.*}?', + categories: ['new-media'], + name: '资讯, 快讯, 用户文章, 主题文章, 专题文章, 搜索文章, 搜索快讯', + maintainers: ['nczitzk'], handler, }; diff --git a/lib/routes/3dmgame/game.ts b/lib/routes/3dmgame/game.ts index 506f778ee..765b49c64 100644 --- a/lib/routes/3dmgame/game.ts +++ b/lib/routes/3dmgame/game.ts @@ -12,7 +12,8 @@ export const route: Route = { source: ['3dmgame.com/games/:name/:type'], }, ], - name: 'Unknown', + name: '游戏资讯', + categories: ['game'], maintainers: ['sinchang', 'jacky2001114', 'HenryQW'], handler, }; diff --git a/lib/routes/abc/index.ts b/lib/routes/abc/index.ts index 220d9fa82..aa1f0121f 100644 --- a/lib/routes/abc/index.ts +++ b/lib/routes/abc/index.ts @@ -17,8 +17,19 @@ export const route: Route = { target: '/:category', }, ], - name: 'Unknown', - maintainers: [], + parameters: { + category: 'Category, can be found in the URL, can also be filled in with the `documentId` in the source code of the page, `news/justin` as **Just In** by default', + }, + name: 'Channel & Topic', + categories: ['traditional-media'], + description: `:::tip + All Topics in [Topic Library](https://abc.net.au/news/topics) are supported, you can fill in the field after \`topic\` in its URL, or fill in the \`documentId\`. + + For example, the URL for [Computer Science](https://www.abc.net.au/news/topic/computer-science) is \`https://www.abc.net.au/news/topic/computer-science\`, the \`category\` is \`news/topic/computer-science\`, and the \`documentId\` of the Topic is \`2302\`, so the route is [/abc/news/topic/computer-science](https://rsshub.app/abc/news/topic/computer-science) and [/abc/2302](https://rsshub.app/abc/2302). + + The supported channels are all listed in the table below. For other channels, please find the \`documentId\` in the source code of the channel page and fill it in as above. + :::`, + maintainers: ['nczitzk'], handler, }; diff --git a/lib/routes/abskoop/index.ts b/lib/routes/abskoop/index.ts index a3804d83b..9bc07597f 100644 --- a/lib/routes/abskoop/index.ts +++ b/lib/routes/abskoop/index.ts @@ -12,7 +12,7 @@ export const route: Route = { target: '', }, ], - name: 'Unknown', + name: '存档列表', maintainers: ['zhenhappy'], handler, url: 'ahhhhfs.com/', diff --git a/lib/routes/abskoop/nsfw.ts b/lib/routes/abskoop/nsfw.ts index 42fe93bab..662aa00c4 100644 --- a/lib/routes/abskoop/nsfw.ts +++ b/lib/routes/abskoop/nsfw.ts @@ -10,8 +10,8 @@ export const route: Route = { target: '', }, ], - name: 'Unknown', - maintainers: [], + name: '存档列表 - NSFW', + maintainers: ['zhenhappy'], handler, url: 'ahhhhfs.com/', }; diff --git a/lib/routes/acfun/video.ts b/lib/routes/acfun/video.ts index de51e7d60..6db5451b7 100644 --- a/lib/routes/acfun/video.ts +++ b/lib/routes/acfun/video.ts @@ -11,7 +11,11 @@ export const route: Route = { target: '/user/video/:id', }, ], - name: 'Unknown', + name: '用户投稿', + parameters: { + uid: '用户 UID', + }, + categories: ['anime'], maintainers: ['wdssmq'], handler, }; diff --git a/lib/routes/bbc/index.ts b/lib/routes/bbc/index.ts index fbf3930b2..e20c6c815 100644 --- a/lib/routes/bbc/index.ts +++ b/lib/routes/bbc/index.ts @@ -7,9 +7,20 @@ import utils from './utils'; export const route: Route = { path: '/:site?/:channel?', - name: 'Unknown', - maintainers: [], + name: 'News', + maintainers: ['HenryQW', 'DIYgod'], handler, + example: '/bbc/world-asia', + parameters: { + site: '语言,简体或繁体中文', + channel: 'channel, default to `top stories`', + }, + categories: ['traditional-media'], + description: `Provides a better reading experience (full text articles) over the official ones. + + Support major channels, refer to [BBC RSS feeds](https://www.bbc.co.uk/news/10628494). Eg, \`business\` for \`https://feeds.bbci.co.uk/news/business/rss.xml\`. + + - Channel contains sub-directories, such as \`https://feeds.bbci.co.uk/news/world/asia/rss.xml\`, replace \`/\` with \`-\`, \`/bbc/world-asia\`.`, }; async function handler(ctx) { diff --git a/lib/routes/bilibili/bangumi.ts b/lib/routes/bilibili/bangumi.ts index 7e2ee8fe8..1f23bdd42 100644 --- a/lib/routes/bilibili/bangumi.ts +++ b/lib/routes/bilibili/bangumi.ts @@ -2,8 +2,13 @@ import { Route } from '@/types'; import got from '@/utils/got'; export const route: Route = { - path: ['/bangumi/:seasonid', '/bangumi/media/:mediaid'], - name: 'Unknown', + path: '/bangumi/media/:mediaid', + name: '番剧', + parameters: { + mediaid: '番剧媒体 id, 番剧主页 URL 中获取', + }, + example: '/bilibili/bangumi/media/9192', + categories: ['social-media'], maintainers: ['DIYgod'], handler, }; diff --git a/lib/routes/bilibili/ranking.ts b/lib/routes/bilibili/ranking.ts index 86527ea9a..800ecbb3a 100644 --- a/lib/routes/bilibili/ranking.ts +++ b/lib/routes/bilibili/ranking.ts @@ -4,8 +4,19 @@ import utils from './utils'; export const route: Route = { path: '/ranking/:rid?/:day?/:arc_type?/:disableEmbed?', - name: 'Unknown', + name: '排行榜', maintainers: ['DIYgod'], + categories: ['social-media'], + example: '/bilibili/ranking/0/3/1', + parameters: { + rid: '排行榜分区 id, 默认 0', + day: '时间跨度, 可为 1 3 7 30', + arc_type: '投稿时间, 可为 0(全部投稿) 1(近期投稿) , 默认 1', + disableEmbed: '默认为开启内嵌视频, 任意值为关闭', + }, + description: `| 全站 | 动画 | 国创相关 | 音乐 | 舞蹈 | 游戏 | 科技 | 数码 | 生活 | 鬼畜 | 时尚 | 娱乐 | 影视 | + | ---- | ---- | -------- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | + | 0 | 1 | 168 | 3 | 129 | 4 | 36 | 188 | 160 | 119 | 155 | 5 | 181 |`, handler, }; diff --git a/lib/routes/bilibili/video-all.ts b/lib/routes/bilibili/video-all.ts index e436d0b3e..b0f154d35 100644 --- a/lib/routes/bilibili/video-all.ts +++ b/lib/routes/bilibili/video-all.ts @@ -6,9 +6,10 @@ import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/user/video-all/:uid/:disableEmbed?', - name: 'Unknown', + name: '用户所有视频', maintainers: [], handler, + categories: ['social-media'], }; async function handler(ctx) {