RSSHub/lib/routes/cnbeta/category.ts

24 lines
737 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Route } from '@/types';
import { handler } from './common';
export const route: Route = {
name: '分类',
path: ['/category/:id'],
example: '/cnbeta/category/movie',
maintainers: ['nczitzk'],
parameters: {
id: '分类 id可在对应分类页的 URL 中找到',
},
radar: [
{
source: ['cnbeta.com.tw/category/:id'],
target: (params) => `/cnbeta/category/${params.id.replace('.htm', '')}`,
},
],
handler,
url: 'cnbeta.com.tw',
description: `| 影视 | 音乐 | 游戏 | 动漫 | 趣闻 | 科学 | 软件 |
| ----- | ----- | ---- | ----- | ----- | ------- | ---- |
| movie | music | game | comic | funny | science | soft |`,
};