feat(route): javdb actors addon_tags (#16336)

This commit is contained in:
Madray Haven 2024-08-02 22:30:27 +08:00 committed by GitHub
parent 896d2c78a5
commit 45818f4e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -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 = {
'': '',