mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-01 21:59:54 +08:00
feat(downloader): support first_last_piece
This commit is contained in:
@@ -97,7 +97,7 @@ function saveDownloaderInfo() {
|
||||
return
|
||||
}
|
||||
// 重名判断
|
||||
if (props.downloaders.some(item => item.name === downloaderName.value && item!== props.downloader)) {
|
||||
if (props.downloaders.some(item => item.name === downloaderName.value && item !== props.downloader)) {
|
||||
$toast.error(`【${downloaderName.value}】已存在,请替换为其他名称`)
|
||||
return
|
||||
}
|
||||
@@ -175,7 +175,7 @@ onUnmounted(() => {
|
||||
</div>
|
||||
</VCardText>
|
||||
</VCard>
|
||||
<VDialog v-model="downloaderInfoDialog" scrollable max-width="40rem" persistent >
|
||||
<VDialog v-model="downloaderInfoDialog" scrollable max-width="40rem" persistent>
|
||||
<VCard :title="`${props.downloader.name} - 配置`" class="rounded-t">
|
||||
<DialogCloseBtn v-model="downloaderInfoDialog" />
|
||||
<VDivider />
|
||||
@@ -257,6 +257,15 @@ onUnmounted(() => {
|
||||
active
|
||||
/>
|
||||
</VCol>
|
||||
<VCol cols="12" md="6">
|
||||
<VSwitch
|
||||
v-model="downloaderInfo.config.first_last_piece"
|
||||
label="优先首尾文件"
|
||||
hint="优先下载首尾文件块"
|
||||
persistent-hint
|
||||
active
|
||||
/>
|
||||
</VCol>
|
||||
</VRow>
|
||||
<VRow v-if="downloaderInfo.type == 'transmission'">
|
||||
<VCol cols="12" md="6">
|
||||
|
||||
Reference in New Issue
Block a user