rsshub
Version:
Make RSS Great Again!
21 lines (19 loc) • 500 B
text/typescript
import { Route } from '@/types';
import { handler } from './common';
export const route: Route = {
name: '標籤更新',
maintainers: ['Gandum2077'],
path: '/tag/:tag',
example: '/wnacg/tag/漢化',
radar: [
{
source: ['wnacg.com/*'],
target: (_, url) => `/wnacg/tag/${new URL(url).pathname.match(/albums-index-tag-(.+?)\.html$/)[1]}`,
},
],
handler,
url: 'wnacg.com/albums.html',
features: {
nsfw: true,
},
};