From 9aaaf0c52033401c602232a3596049e7ab95acb1 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 12 Oct 2023 09:43:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=9B=B4=E5=A4=9A=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types.ts | 9 ++ src/components/cards/FilterRuleCard.vue | 2 + src/components/cards/SubscribeCard.vue | 121 ++++++++++++++++++++++++ 3 files changed, 132 insertions(+) diff --git a/src/api/types.ts b/src/api/types.ts index 0e00d343..6954a688 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -44,6 +44,15 @@ export interface Subscribe { // 排除 exclude?: string + // 质量 + quality?: string + + // 分辨率 + resolution?: string + + // 特效 + effect?: string + // 总集数 total_episode?: number diff --git a/src/components/cards/FilterRuleCard.vue b/src/components/cards/FilterRuleCard.vue index b4dd0610..09baacc8 100644 --- a/src/components/cards/FilterRuleCard.vue +++ b/src/components/cards/FilterRuleCard.vue @@ -55,6 +55,8 @@ const selectFilterOptions = ref<{ [key: string]: string }[]>([ { title: '排除: H264', value: ' !H264 ' }, { title: '效果: 杜比视界', value: ' DOLBY ' }, { title: '排除: 杜比视界', value: ' !DOLBY ' }, + { title: '效果: 杜比全景声', value: ' ATMOS ' }, + { title: '排除: 杜比全景声', value: ' !ATMOS ' }, { title: '效果: HDR', value: ' HDR ' }, { title: '排除: HDR', value: ' !HDR ' }, { title: '国语配音', value: ' CNVOI ' }, diff --git a/src/components/cards/SubscribeCard.vue b/src/components/cards/SubscribeCard.vue index a23b295a..f9d401cd 100644 --- a/src/components/cards/SubscribeCard.vue +++ b/src/components/cards/SubscribeCard.vue @@ -196,6 +196,94 @@ const dropdownItems = ref([ }, }, ]) + +// 质量选择框数据 +const qualityOptions = ref([ + { + title: '全部', + value: '', + }, + { + title: '蓝光原盘', + value: 'Blu-?Ray.+VC-?1|Blu-?Ray.+AVC|UHD.+blu-?ray.+HEVC|MiniBD', + }, + { + title: 'Remux', + value: 'Remux', + }, + { + title: 'BluRay', + value: 'Blu-?Ray', + }, + { + title: 'UHD', + value: 'UHD|UltraHD', + }, + { + title: 'WEB-DL', + value: 'WEB-?DL|WEB-?RIP', + }, + { + title: 'HDTV', + value: 'HDTV', + }, + { + title: 'H265', + value: '[Hx].?265|HEVC', + }, + { + title: 'H264', + value: '[Hx].?264|AVC', + }, + { + title: '其他', + value: '其他', + }, +]) + +// 分辨率选择框数据 +const resolutionOptions = ref([ + { + title: '全部', + value: '', + }, + { + title: '8K', + value: '8K|4320p|x4320', + }, + { + title: '4k', + value: '4K|2160p|x2160', + }, + { + title: '1080p', + value: '1080[pi]|x1080', + }, + { + title: '720p', + value: '720[pi]|x720', + }, +]) + +// 特效选择框数据 +const effectOptions = ref([ + { + title: '全部', + value: '', + }, + { + title: '杜比视界', + value: 'Dolby[\\s.]+Vision|DOVI|[\\s.]+DV[\\s.]+', + }, + { + title: '杜比全景声', + value: 'Dolby[\\s.]*\\+?Atmos|Atmos', + }, + { + title: 'HDR', + value: '[\\s.]+HDR[\\s.]+|HDR10|HDR10\\+', + }, +])