Peach: Local-first video metadata scraper and media manager.
fix(web): 注册 JAV 作品详情深链页面
longmeidao2c9bbd3c5b36
diff --git a/frontend/e2e/jav-recommendations.test.ts b/frontend/e2e/jav-recommendations.test.tsindex 54ba10b5a..c1246d99c 100644--- a/frontend/e2e/jav-recommendations.test.ts+++ b/frontend/e2e/jav-recommendations.test.ts@@ -77,10 +77,10 @@ describe('JAV 推荐与加载结构', () => {assert.equal(await cards.count(), 1);await search.fill('');await page.waitForFunction(() => document.querySelectorAll('[aria-label="为你推荐"] article').length === 3);- await page.getByRole('radio', { name: '小图', exact: true }).click();+ await page.locator('label:has(input[aria-label="小图"])').click();const smallCover = await cards.first().locator('[data-jav-cover-box]').boundingBox();assert.ok(smallCover && Math.abs(smallCover.width / smallCover.height - 16 / 9) < 0.02);- await page.getByRole('radio', { name: '大图', exact: true }).click();+ await page.locator('label:has(input[aria-label="大图"])').click();await cards.first().getByRole('button', { name: '恋足', exact: true }).click();await page.getByRole('button', { name: '清除筛选', exact: true }).click();assert.equal(await cards.count(), 3);diff --git a/src/peach/routes_pages.py b/src/peach/routes_pages.pyindex a8148cd53..4526a013a 100644--- a/src/peach/routes_pages.py+++ b/src/peach/routes_pages.py@@ -638,6 +638,7 @@ def index_directory_redirect(request: Request, args: dict[str, str] = Depends(re@router.api_route("/agencies", methods=["GET", "HEAD"])@router.api_route("/tags", methods=["GET", "HEAD"])@router.api_route("/jav", methods=["GET", "HEAD"])[email protected]_route("/jav/movie/{code}", methods=["GET", "HEAD"])@router.api_route("/unseen", methods=["GET", "HEAD"])@router.api_route("/watch-later", methods=["GET", "HEAD"])@router.api_route("/flagged", methods=["GET", "HEAD"])@@ -667,6 +668,6 @@ def client_route(request: Request, item_id: int | None = None,part_seed_id: int | None = None, part_item_id: int | None = None,edition_seed_id: int | None = None, edition_item_id: int | None = None,playlist_id: int | None = None, playlist_item_id: int | None = None,- kind: str | None = None, name: str | None = None,+ kind: str | None = None, name: str | None = None, code: str | None = None,args: dict[str, str] = Depends(require_page_auth)):return index(request, args)