forked from Shinonome/dots-hyprland
booru: add curl flags for img download
This commit is contained in:
@@ -31,7 +31,7 @@ Button {
|
|||||||
Process {
|
Process {
|
||||||
id: downloadProcess
|
id: downloadProcess
|
||||||
running: false
|
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) => {
|
onExited: (exitCode, exitStatus) => {
|
||||||
imageObject.source = `${previewDownloadPath}/${root.fileName}`
|
imageObject.source = `${previewDownloadPath}/${root.fileName}`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user