diff --git a/ui/app/components/NewDownload.vue b/ui/app/components/NewDownload.vue index 53ed1eb6..13962837 100644 --- a/ui/app/components/NewDownload.vue +++ b/ui/app/components/NewDownload.vue @@ -63,8 +63,9 @@
- +
@@ -527,5 +528,15 @@ const get_output_template = () => { return config.app.output_template || '%(title)s.%(ext)s' } +const get_download_folder = (): string => { + if (form.value.preset && false === hasFormatInConfig.value) { + const preset = config.presets.find(p => p.name === form.value.preset) + if (preset?.folder) { + return preset.folder.replace(config.app.download_path, '') + } + } + return '/' +} + const sortedDLFields = computed(() => config.dl_fields.sort((a, b) => (a.order || 0) - (b.order || 0)))