Files
RSSHub/lib/v2/javdb/actors.js
2021-11-27 09:12:20 +00:00

21 lines
520 B
JavaScript

const utils = require('./utils');
module.exports = async (ctx) => {
const id = ctx.params.id;
const filter = ctx.params.filter ?? '';
const currentUrl = `/actors/${id}${filter ? `?t=${filter}` : ''}`;
const filters = {
'': '',
p: '可播放',
s: '單體作品',
d: '可下載',
c: '含字幕',
};
const title = `JavDB${filters[filter] === '' ? '' : ` - ${filters[filter]}`} `;
ctx.state.data = await utils.ProcessItems(ctx, currentUrl, title);
};