diff --git a/ui/components/TaskForm.vue b/ui/components/TaskForm.vue
index a6d1e183..7f93eac1 100644
--- a/ui/components/TaskForm.vue
+++ b/ui/components/TaskForm.vue
@@ -111,8 +111,9 @@
Select the preset to use for this URL. If the
- -f, --format argument is present in the command line options, the preset and all
- it's options will be ignored.
+ -f, --format
+ argument is present in the command line options, the preset and all
+ it's options will be ignored.
@@ -152,8 +153,8 @@
- Paths are relative to global download path, defaults to preset download path if set otherwise,
- fallback root path if not set.
+ Current download folder: {{ get_download_folder() }}. All folders are
+ sub-folders of {{ config.app.download_path }}.
@@ -170,11 +171,7 @@
- Use this output template if non are given with URL. if not set, it will defaults to
- {{ config.app.output_template }}.
- For more information {{ get_output_template() }}.
@@ -405,4 +402,23 @@ const hasFormatInConfig = computed(() => {
const filter_presets = (flag = true) => config.presets.filter(item => item.default === flag)
+const get_download_folder = () => {
+ if (form.preset && !hasFormatInConfig.value) {
+ const preset = config.presets.find(p => p.name === form.preset)
+ if (preset && preset.folder) {
+ return preset.folder.replace(config.app.download_path, '')
+ }
+ }
+ return '/'
+}
+
+const get_output_template = () => {
+ if (form.preset && !hasFormatInConfig.value) {
+ const preset = config.presets.find(p => p.name === form.preset)
+ if (preset && preset.template) {
+ return preset.template
+ }
+ }
+ return config.app.output_template || '%(title)s.%(ext)s'
+}
diff --git a/ui/pages/tasks.vue b/ui/pages/tasks.vue
index 1d3171b5..849f3c0f 100644
--- a/ui/pages/tasks.vue
+++ b/ui/pages/tasks.vue
@@ -101,8 +101,9 @@ div.is-centered {