mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 01:06:41 +08:00
fix #2179 根据路径自动匹配刮削开关
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "moviepilot",
|
"name": "moviepilot",
|
||||||
"version": "1.9.1-1",
|
"version": "1.9.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"bin": "dist/service.js",
|
"bin": "dist/service.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ const transferForm = reactive({
|
|||||||
episode_part: '',
|
episode_part: '',
|
||||||
episode_offset: null,
|
episode_offset: null,
|
||||||
min_filesize: 0,
|
min_filesize: 0,
|
||||||
scrape: true,
|
scrape: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 所有媒体库目录
|
// 所有媒体库目录
|
||||||
@@ -77,11 +77,22 @@ const targetDirectories = computed(() => {
|
|||||||
return [...new Set(directories)]
|
return [...new Set(directories)]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 监听输入变化
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
transferForm.path = props.path ?? ''
|
transferForm.path = props.path ?? ''
|
||||||
transferForm.target = props.target ?? null
|
transferForm.target = props.target ?? null
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 监听目的路径变化,自动查询目录的刮削配置
|
||||||
|
watch(transferForm, async () => {
|
||||||
|
if (transferForm.target) {
|
||||||
|
const directory = libraryDirectories.value.find(item => item.path === transferForm.target)
|
||||||
|
if (directory) {
|
||||||
|
transferForm.scrape = directory.scrape ?? false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// 使用SSE监听加载进度
|
// 使用SSE监听加载进度
|
||||||
function startLoadingProgress() {
|
function startLoadingProgress() {
|
||||||
progressText.value = '请稍候 ...'
|
progressText.value = '请稍候 ...'
|
||||||
|
|||||||
Reference in New Issue
Block a user