mirror of
https://github.com/wushuo894/ani-rss.git
synced 2026-03-13 09:20:23 +00:00
feat: 支持自定义上传
This commit is contained in:
@@ -48,7 +48,6 @@ public class OpenListUploadNotification implements BaseNotification {
|
||||
|
||||
this.notificationConfig = notificationConfig;
|
||||
|
||||
|
||||
String openListUploadPath = notificationConfig.getOpenListUploadPath();
|
||||
String openListUploadOvaPath = notificationConfig.getOpenListUploadOvaPath();
|
||||
Boolean deleteOldEpisode = notificationConfig.getOpenListUploadDeleteOldEpisode();
|
||||
@@ -63,6 +62,13 @@ public class OpenListUploadNotification implements BaseNotification {
|
||||
} else {
|
||||
ani.setDownloadPath(openListUploadPath);
|
||||
}
|
||||
|
||||
Boolean customAlistPath = ani.getCustomAlistPath();
|
||||
if (customAlistPath) {
|
||||
// 自定义上传位置
|
||||
ani.setDownloadPath(ani.getAlistPath());
|
||||
}
|
||||
|
||||
ani.setCustomDownloadPath(true);
|
||||
|
||||
String target = DownloadService.getDownloadPath(ani);
|
||||
|
||||
@@ -147,6 +147,18 @@
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="自定义上传">
|
||||
<div style="width: 100%;">
|
||||
<div>
|
||||
<el-switch v-model="props.ani.customAlistPath"/>
|
||||
</div>
|
||||
<div>
|
||||
<el-input v-model:model-value="props.ani.alistPath" :autosize="{ minRows: 2}" :disabled="!props.ani.customAlistPath"
|
||||
style="width: 100%"
|
||||
type="textarea"/>
|
||||
</div>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="自定义完结迁移">
|
||||
<div style="width: 100%;">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user