RSSHub/lib/v2/95mm/category.js

21 lines
546 B
JavaScript

const { rootUrl, ProcessItems } = require('./utils');
module.exports = async (ctx) => {
const categories = {
1: '清纯唯美',
2: '摄影私房',
4: '明星写真',
5: '三次元',
6: '异域美景',
7: '性感妖姬',
9: '游戏主题',
11: '美女壁纸',
};
const category = ctx.params.category;
const currentUrl = `${rootUrl}/category-${category}/list-1/index.html?page=1`;
ctx.state.data = await ProcessItems(ctx, categories[category], currentUrl);
};