From 61c9e7de883777aec9f40a17b47f2b36b3d36f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=80=E1=B4=8D=E1=B4=9B=E1=B4=8F=E1=B4=80=E1=B4=87?= =?UTF-8?q?=CA=80?= Date: Thu, 25 Sep 2025 00:50:17 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=89=8D=E7=AB=AF=E5=B0=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8Cua=20=E9=9A=8F=E6=9C=BA=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20windows=20(#470)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/bili_sync/src/bilibili/client.rs | 2 +- web/src/lib/components/video-card.svelte | 2 +- web/src/routes/video-sources/+page.svelte | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/bili_sync/src/bilibili/client.rs b/crates/bili_sync/src/bilibili/client.rs index 99462b2..762af6f 100644 --- a/crates/bili_sync/src/bilibili/client.rs +++ b/crates/bili_sync/src/bilibili/client.rs @@ -20,7 +20,7 @@ impl Client { let mut headers = header::HeaderMap::new(); headers.insert( header::USER_AGENT, - header::HeaderValue::from_static(ua::spoof_chrome_mac_ua()), + header::HeaderValue::from_static(ua::spoof_chrome_ua()), ); headers.insert( header::REFERER, diff --git a/web/src/lib/components/video-card.svelte b/web/src/lib/components/video-card.svelte index da79b9a..c0701bf 100644 --- a/web/src/lib/components/video-card.svelte +++ b/web/src/lib/components/video-card.svelte @@ -57,7 +57,7 @@ style: string; } { if (!shouldDownload) { - // 被筛选规则排除,显示为“跳过” + // 被过滤规则排除,显示为“跳过” return { text: '跳过', style: 'bg-gray-100 text-gray-700' }; } const completed = downloadStatus.filter((status) => status === 7).length; diff --git a/web/src/routes/video-sources/+page.svelte b/web/src/routes/video-sources/+page.svelte index 99d5734..638b3e3 100644 --- a/web/src/routes/video-sources/+page.svelte +++ b/web/src/routes/video-sources/+page.svelte @@ -265,9 +265,9 @@ - 名称 - 下载路径 - 筛选规则 + 名称 + 下载路径 + 过滤规则 状态 操作 @@ -288,9 +288,9 @@
-
- {source.rule.length} 条规则 -
+ {source.rule.length} 条规则

{source.ruleDisplay}

@@ -298,7 +298,7 @@
{:else} - + - {/if} @@ -416,7 +416,7 @@ 重新评估规则 - 确定要重新评估视频源 "{evaluateSource?.name}" 的筛选规则吗?
+ 确定要重新评估视频源 "{evaluateSource?.name}" 的过滤规则吗?
规则修改后默认仅对新视频生效,该操作可使用当前规则对数据库中已存在的历史视频进行重新评估,无法撤销