Files
RSSHub/lib/v2/95mm/category.js
T
Ethan Shen ef2e78f546 fix(route): MM范 (#8701)
* fix(route): MM范

* fix: add radar

* fix: use art-template
2022-02-26 23:56:20 +08:00

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);
};