booru: add curl flags for img download

This commit is contained in:
end-4
2025-05-24 22:04:32 +02:00
parent 82713ed19a
commit b80294181c
@@ -31,7 +31,7 @@ Button {
Process {
id: downloadProcess
running: false
command: ["bash", "-c", `[ -f ${root.filePath} ] || curl '${root.imageData.preview_url ?? root.imageData.sample_url}' -o '${root.filePath}'`]
command: ["bash", "-c", `[ -f ${root.filePath} ] || curl -sSL '${root.imageData.preview_url ?? root.imageData.sample_url}' -o '${root.filePath}'`]
onExited: (exitCode, exitStatus) => {
imageObject.source = `${previewDownloadPath}/${root.fileName}`
}