Atualização automática: 2026-05-23 20:55:21

This commit is contained in:
Hermes
2026-05-23 20:55:21 +00:00
parent a81e273364
commit 7cfc1724d3
4 changed files with 73 additions and 33 deletions
+10 -2
View File
@@ -304,7 +304,10 @@ async function startCloning(url, options) {
response = await fetch('/api/smart-clone', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ url })
body: JSON.stringify({
url,
outputDir: settings.outputDir
})
});
} else {
// WGET logic
@@ -313,7 +316,8 @@ async function startCloning(url, options) {
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
url,
depth: options.depth
depth: options.depth,
outputDir: settings.outputDir
})
});
}
@@ -584,9 +588,13 @@ function loadSettings() {
}
// Populate settings form (if needed)
const outDirInput = document.getElementById('settingsOutputDir');
if (outDirInput) outDirInput.value = settings.outputDir || '/root/Desktop/Clonados';
}
function saveSettings() {
const outDirInput = document.getElementById('settingsOutputDir');
if (outDirInput) settings.outputDir = outDirInput.value;
localStorage.setItem('cloneSettings', JSON.stringify(settings));
showToast('Configurações salvas!', 'success');
}