mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-02 18:18:06 +08:00
33 lines
859 B
JavaScript
33 lines
859 B
JavaScript
const utils = require('./utils');
|
|
|
|
module.exports = async (ctx) => {
|
|
const category = ctx.params.category ?? 'censored';
|
|
const sort = ctx.params.sort ?? '2';
|
|
const filter = ctx.params.filter ?? '1';
|
|
|
|
const currentUrl = `${category === 'censored' ? '' : category}?vft=${filter}&vst=${sort}`;
|
|
|
|
const categories = {
|
|
censored: '有碼',
|
|
uncensored: '無碼',
|
|
western: '歐美',
|
|
fc2: 'FC2',
|
|
};
|
|
|
|
const filters = {
|
|
0: '',
|
|
1: '可下载',
|
|
2: '含字幕',
|
|
3: '含短評',
|
|
};
|
|
|
|
const sorts = {
|
|
1: '发布日期排序',
|
|
2: '磁鏈更新排序',
|
|
};
|
|
|
|
const title = `${categories[category]} - JavDB - ${filters[filter] === '' ? '|' : `${filters[filter]} | `}${sorts[sort]}`;
|
|
|
|
ctx.state.data = await utils.ProcessItems(ctx, currentUrl, title);
|
|
};
|