From 086c230e9e47d26d5606246378c326883981cb59 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 9 Nov 2023 23:26:46 +0800 Subject: [PATCH] fix text --- package.json | 2 +- src/components/cards/MediaCard.vue | 10 +++++----- src/views/discover/MediaDetailView.vue | 10 +++++----- src/views/discover/TorrentCardListView.vue | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index b4884c52..7cd59166 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moviepilot", - "version": "1.4.0-1", + "version": "1.4.0-2", "private": true, "bin": "dist/service.js", "scripts": { diff --git a/src/components/cards/MediaCard.vue b/src/components/cards/MediaCard.vue index cf547e87..fbc0f426 100644 --- a/src/components/cards/MediaCard.vue +++ b/src/components/cards/MediaCard.vue @@ -34,7 +34,7 @@ const isSubscribed = ref(false) // 本地存在状态 const isExists = ref(false) -// 各季缺失状态:0-已存在 1-部分缺失 2-全部缺失,没有数据也是已存在 +// 各季缺失状态:0-已入库 1-部分缺失 2-全部缺失,没有数据也是已入库 const seasonsNotExisted = ref<{ [key: number]: number }>({}) // 订阅季弹窗 @@ -220,7 +220,7 @@ async function handleCheckSubscribe() { } } -// 查询当前媒体是否已存在 +// 查询当前媒体是否已入库 async function handleCheckExists() { try { const result: { [key: string]: any } = await api.get('media/exists', { @@ -271,7 +271,7 @@ async function checkSeasonsNotExists() { const result: NotExistMediaInfo[] = await api.post('download/notexists', props.media) if (result) { result.forEach((item) => { - // 0-已存在 1-部分缺失 2-全部缺失 + // 0-已入库 1-部分缺失 2-全部缺失 let state = 0 if (item.episodes.length === 0) state = 2 @@ -327,14 +327,14 @@ function getExistColor(season: number) { function getExistText(season: number) { const state = seasonsNotExisted.value[season] if (!state) - return '已存在' + return '已入库' if (state === 1) return '部分缺失' else if (state === 2) return '缺失' else - return '已存在' + return '已入库' } // 打开详情页 diff --git a/src/views/discover/MediaDetailView.vue b/src/views/discover/MediaDetailView.vue index 031ed683..a2a76fdf 100644 --- a/src/views/discover/MediaDetailView.vue +++ b/src/views/discover/MediaDetailView.vue @@ -37,7 +37,7 @@ const isRefreshed = ref(false) // 存储每一季的集信息 const seasonEpisodesInfo = ref({} as { [key: number]: TmdbEpisode[] }) -// 各季缺失状态:0-已存在 1-部分缺失 2-全部缺失,没有数据也是已存在 +// 各季缺失状态:0-已入库 1-部分缺失 2-全部缺失,没有数据也是已入库 const seasonsNotExisted = ref<{ [key: number]: number }>({}) // 各季的订阅状态 @@ -85,7 +85,7 @@ async function loadSeasonEpisodes(season: number) { } } -// 查询当前媒体是否已存在 +// 查询当前媒体是否已入库 async function checkMovieExists() { try { const result: { [key: string]: any } = await api.get('media/exists', { @@ -138,7 +138,7 @@ async function checkSeasonsNotExists() { isExists.value = true result.forEach((item) => { - // 0-已存在 1-部分缺失 2-全部缺失 + // 0-已入库 1-部分缺失 2-全部缺失 let state = 0 if (item.episodes.length === 0) state = 2 @@ -358,14 +358,14 @@ function getExistColor(season: number) { function getExistText(season: number) { const state = seasonsNotExisted.value[season] if (!state) - return '已存在' + return '已入库' if (state === 1) return '部分缺失' else if (state === 2) return '缺失' else - return '已存在' + return '已入库' } // 计算订阅图标 diff --git a/src/views/discover/TorrentCardListView.vue b/src/views/discover/TorrentCardListView.vue index 5d679de1..73f24b22 100644 --- a/src/views/discover/TorrentCardListView.vue +++ b/src/views/discover/TorrentCardListView.vue @@ -80,7 +80,7 @@ watchEffect(() => { // group data const key = `${torrent_info.title}_${torrent_info.size}` if (groupMap.has(key)) { - // 已存在相同标题和大小的分组,将当前上下文信息添加到分组中 + // 已入库相同标题和大小的分组,将当前上下文信息添加到分组中 const group = groupMap.get(key) group?.push(item) }