fix open folder
This commit is contained in:
@@ -67,11 +67,18 @@ async function startDownload() {
|
||||
{ title: metadata.value.title, thumbnail: "", id: metadata.value.id } : // Playlist
|
||||
metadata.value; // Video
|
||||
|
||||
const id = await invoke<string>('start_download', {
|
||||
url: url.value,
|
||||
options: options.value,
|
||||
metadata: metaToSend
|
||||
})
|
||||
// Output template
|
||||
// IMPORTANT: history item should store the directory, not the full template path
|
||||
// The downloader handles the template appending internally.
|
||||
|
||||
// We need to pass the directory path to the command, which is what options.value.output_path holds.
|
||||
// The downloader.rs logic appends the filename template.
|
||||
|
||||
const id = await invoke<string>('start_download', {
|
||||
url: url.value,
|
||||
options: options.value,
|
||||
metadata: metaToSend
|
||||
})
|
||||
|
||||
// Add to queue store immediately for UI
|
||||
queueStore.addTask({
|
||||
|
||||
Reference in New Issue
Block a user