mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
Merge pull request #127 from dh336699/main
This commit is contained in:
@@ -97,7 +97,6 @@ async function handleAddSubscribe() {
|
|||||||
$toast.error(`${props.media?.title} 查询剧集信息失败!`)
|
$toast.error(`${props.media?.title} 查询剧集信息失败!`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查各季的缺失状态
|
// 检查各季的缺失状态
|
||||||
await checkSeasonsNotExists()
|
await checkSeasonsNotExists()
|
||||||
if (!tmdbFlag.value) return
|
if (!tmdbFlag.value) return
|
||||||
@@ -174,7 +173,7 @@ function showSubscribeAddToast(result: boolean, title: string, season: number, m
|
|||||||
let subname = '订阅'
|
let subname = '订阅'
|
||||||
if (best_version > 0) subname = '洗版订阅'
|
if (best_version > 0) subname = '洗版订阅'
|
||||||
|
|
||||||
if (result && seasonsSelected.value.length > 1) $toast.success(`${title} 添加${subname}成功!`)
|
if (result) $toast.success(`${title} 添加${subname}成功!`)
|
||||||
else if (!result) $toast.error(`${title} 添加${subname}失败:${message}!`)
|
else if (!result) $toast.error(`${title} 添加${subname}失败:${message}!`)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,8 +198,9 @@ async function removeSubscribe() {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
} finally {
|
||||||
|
doneNProgress()
|
||||||
}
|
}
|
||||||
doneNProgress()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询当前媒体是否已订阅
|
// 查询当前媒体是否已订阅
|
||||||
@@ -271,10 +271,10 @@ async function checkSeasonsNotExists() {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
$toast.error(`${props.media?.title}无法识别TMDB媒体信息!`)
|
$toast.error(`${props.media?.title}无法识别TMDB媒体信息!`)
|
||||||
tmdbFlag.value = false
|
tmdbFlag.value = false
|
||||||
|
} finally {
|
||||||
|
// 处理完成
|
||||||
|
doneNProgress()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理完成
|
|
||||||
doneNProgress()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询TMDB的所有季信息
|
// 查询TMDB的所有季信息
|
||||||
|
|||||||
Reference in New Issue
Block a user