feat: fetch douban video info with year

This commit is contained in:
shinya
2025-07-18 22:32:48 +08:00
parent 29c6019462
commit 498010ba2e
7 changed files with 22 additions and 94 deletions

View File

@@ -195,7 +195,11 @@ export default function VideoCard({
const handleClick = useCallback(() => {
if (from === 'douban') {
router.push(`/play?title=${encodeURIComponent(actualTitle.trim())}`);
router.push(
`/play?title=${encodeURIComponent(actualTitle.trim())}${
actualYear ? `&year=${actualYear}` : ''
}`
);
} else if (actualSource && actualId) {
router.push(
`/play?source=${actualSource}&id=${actualId}&title=${encodeURIComponent(