From b90d7dfc5588faa66c3515b67ce902176451ec73 Mon Sep 17 00:00:00 2001 From: noelorin Date: Sat, 26 Sep 2026 23:35:05 +0800 Subject: [PATCH] feat(danmaku): auto-link same-name sidecar xml from mount --- app/web/src/components/pages/WatchBody.tsx | 5 + packages/i18n/src/messages/en.ts | 1 + packages/i18n/src/messages/zh-CN.ts | 1 + .../trpc/src/services/danmaku.service.test.ts | 265 +++++++++++++++++- packages/trpc/src/services/danmaku.service.ts | 70 ++++- 5 files changed, 340 insertions(+), 2 deletions(-) diff --git a/app/web/src/components/pages/WatchBody.tsx b/app/web/src/components/pages/WatchBody.tsx index 6003403..ffb691e 100644 --- a/app/web/src/components/pages/WatchBody.tsx +++ b/app/web/src/components/pages/WatchBody.tsx @@ -628,6 +628,11 @@ function WatchInner(props: { locale: Locale; mediaItemId: string }) {
{sourceLabel} + {isLocalSource && fetchMessage.includes("同名") && ( + + {t(locale, "watch.sidecarLinked")} + + )} {showRematch && (