feat(route): javdb actors addon_tags (#16336)
This commit is contained in:
parent
896d2c78a5
commit
45818f4e7b
|
|
@ -34,14 +34,18 @@ export const route: Route = {
|
|||
| ---- | ------ | -------- | ------ | ------ |
|
||||
| | p | s | d | c |
|
||||
|
||||
所有演员编号参见 [演員庫](https://javdb.com/actors)`,
|
||||
所有演员编号参见 [演員庫](https://javdb.com/actors)
|
||||
|
||||
可用 addon_tags 参数添加额外的过滤 tag,可从网页 url 中获取,例如 \`/javdb/actors/R2Vg?addon_tags=212,18\` 可筛选 \`VR\` 和 \`中出\`。`,
|
||||
};
|
||||
|
||||
async function handler(ctx) {
|
||||
const id = ctx.req.param('id');
|
||||
const filter = ctx.req.param('filter') ?? '';
|
||||
const addonTags = ctx.req.query('addon_tags') ?? '';
|
||||
|
||||
const currentUrl = `/actors/${id}${filter ? `?t=${filter}` : ''}`;
|
||||
const finalTags = addonTags && filter ? `${filter},${addonTags}` : `${filter}${addonTags}`;
|
||||
const currentUrl = `/actors/${id}${finalTags ? `?t=${finalTags}` : ''}`;
|
||||
|
||||
const filters = {
|
||||
'': '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue