fix(web): selectMatch toast on real payload, neutral match labels
This commit is contained in:
parent
c236f50ec6
commit
4b2f16d779
|
|
@ -416,13 +416,15 @@ function WatchInner(props: { locale: Locale; mediaItemId: string }) {
|
||||||
{ mediaItemId, episodeId },
|
{ mediaItemId, episodeId },
|
||||||
{
|
{
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
setMatchOpen(false);
|
|
||||||
if (data.ok && data.xml) {
|
if (data.ok && data.xml) {
|
||||||
|
setMatchOpen(false);
|
||||||
setMatchXml(data.xml);
|
setMatchXml(data.xml);
|
||||||
setLocalXml("");
|
setLocalXml("");
|
||||||
}
|
|
||||||
void openDanmaku.refetch();
|
void openDanmaku.refetch();
|
||||||
toast.success(t(locale, "watch.matchManual"));
|
toast.success(t(locale, "watch.matchManual"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
toast.error(data.message ?? t(locale, "watch.matchFailed"));
|
||||||
},
|
},
|
||||||
onError: () => toast.error(t(locale, "watch.matchFailed")),
|
onError: () => toast.error(t(locale, "watch.matchFailed")),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -178,10 +178,10 @@ export const en: Record<MessageKey, string> = {
|
||||||
"watch.danmakuLocal": "Danmaku (local)",
|
"watch.danmakuLocal": "Danmaku (local)",
|
||||||
"watch.rematch": "Rematch",
|
"watch.rematch": "Rematch",
|
||||||
"watch.matchCandidates": "Pick episode",
|
"watch.matchCandidates": "Pick episode",
|
||||||
"watch.matchAutoBound": "Auto-matched danmaku",
|
"watch.matchAutoBound": "High-confidence candidate",
|
||||||
"watch.matchManual": "Manual match",
|
"watch.matchManual": "Manual match",
|
||||||
"watch.importSaved": "Danmaku saved",
|
"watch.importSaved": "Danmaku saved",
|
||||||
"watch.foundSameName": "Linked same-name danmaku",
|
"watch.foundSameName": "Same-name candidate",
|
||||||
"watch.filterTitle": "Danmaku filters",
|
"watch.filterTitle": "Danmaku filters",
|
||||||
"watch.blockKeywordAdd": "Add block word",
|
"watch.blockKeywordAdd": "Add block word",
|
||||||
"watch.matchFailed": "Danmaku match failed",
|
"watch.matchFailed": "Danmaku match failed",
|
||||||
|
|
|
||||||
|
|
@ -173,10 +173,10 @@ export const zhCN = {
|
||||||
"watch.danmakuLocal": "弹幕(本地)",
|
"watch.danmakuLocal": "弹幕(本地)",
|
||||||
"watch.rematch": "重新匹配",
|
"watch.rematch": "重新匹配",
|
||||||
"watch.matchCandidates": "选择弹幕集",
|
"watch.matchCandidates": "选择弹幕集",
|
||||||
"watch.matchAutoBound": "已自动匹配弹幕",
|
"watch.matchAutoBound": "高置信候选",
|
||||||
"watch.matchManual": "手动匹配",
|
"watch.matchManual": "手动匹配",
|
||||||
"watch.importSaved": "弹幕已保存",
|
"watch.importSaved": "弹幕已保存",
|
||||||
"watch.foundSameName": "发现同名弹幕,已自动关联",
|
"watch.foundSameName": "同名候选",
|
||||||
"watch.filterTitle": "弹幕过滤",
|
"watch.filterTitle": "弹幕过滤",
|
||||||
"watch.blockKeywordAdd": "添加屏蔽词",
|
"watch.blockKeywordAdd": "添加屏蔽词",
|
||||||
"watch.matchFailed": "弹幕匹配失败",
|
"watch.matchFailed": "弹幕匹配失败",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue