From d3bd63a302e4c2068ffe497967e091bbfa8ac219 Mon Sep 17 00:00:00 2001 From: amtoaer Date: Mon, 13 Jul 2026 10:23:20 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E5=86=85=E6=B5=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=BD=AE=E4=B8=8E=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/filter-option-editor.svelte | 339 +++++++++--------- web/src/routes/video-sources/+page.svelte | 25 +- 2 files changed, 184 insertions(+), 180 deletions(-) diff --git a/web/src/lib/components/filter-option-editor.svelte b/web/src/lib/components/filter-option-editor.svelte index 5b7df12..ad9d981 100644 --- a/web/src/lib/components/filter-option-editor.svelte +++ b/web/src/lib/components/filter-option-editor.svelte @@ -10,174 +10,179 @@ $props(); -
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - - -
- -

排在前面的编码格式优先级更高

-
- {#each value.codecs as codec, index (index)} -
- {index + 1} - {codec} -
- - - -
-
- {/each} - - {#if value.codecs.length < 3} +
+
+ +

+ 根据质量过滤视频音频流,条件过于严苛可能导致视频无可用流 +

+
- -
- {#each ['AV1', 'HEV', 'AVC'] as codec (codec)} - {#if !value.codecs.includes(codec)} - - {/if} - {/each} -
+ +
- {/if} -
-
- - - -
- -

排除某些类型的特殊流

-
- - -
-
- - -
-
- - -
-
- - +
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+ +

排在前面的编码格式优先级更高

+
+ {#each value.codecs as codec, index (index)} +
+ {index + 1} + {codec} +
+ + + +
+
+ {/each} + + {#if value.codecs.length < 3} +
+ +
+ {#each ['AV1', 'HEV', 'AVC'] as codec (codec)} + {#if !value.codecs.includes(codec)} + + {/if} + {/each} +
+
+ {/if} +
+
+ + + +
+ +

排除某些类型的特殊流

+
+ + +
+
+ + +
+
+ + +
+
+ + +
diff --git a/web/src/routes/video-sources/+page.svelte b/web/src/routes/video-sources/+page.svelte index b18de5e..ffc2471 100644 --- a/web/src/routes/video-sources/+page.svelte +++ b/web/src/routes/video-sources/+page.svelte @@ -607,23 +607,22 @@
{/if} -
-
- -
- -

关闭时继承全局过滤设置

-
-
- {#if editFilterOption} - - {/if} -
-
(editForm.rule = rule)} />
+ +
+
+ + +
+ {#if editFilterOption} +
+ +
+ {/if} +