diff --git a/static/script.js b/static/script.js
index d0d621c..9bfb971 100644
--- a/static/script.js
+++ b/static/script.js
@@ -91,7 +91,7 @@ document.addEventListener('DOMContentLoaded', () => {
if (detected) {
dom.platformInput.value = detected.name;
- dom.detectedText.textContent = detected.name + " erkannt";
+ dom.detectedText.textContent = detected.name + " detected";
dom.detectedIcon.className = `fab ${detected.icon}`;
dom.detectionArea.style.opacity = '1';
dom.detectionArea.style.transform = 'translateY(0)';
@@ -156,7 +156,7 @@ document.addEventListener('DOMContentLoaded', () => {
currentJobId = data.job_id;
startPolling();
} else {
- throw new Error(data.error || "Start fehlgeschlagen");
+ throw new Error(data.error || "Start failed");
}
} catch (err) {
showError(err.message);
@@ -168,7 +168,7 @@ document.addEventListener('DOMContentLoaded', () => {
try {
if(!currentJobId) return;
const res = await fetch(`/status?job_id=${currentJobId}`);
- if (res.status === 404) { showError("Job nicht gefunden"); return; }
+ if (res.status === 404) { showError("Job not found"); return; }
const status = await res.json();
@@ -235,7 +235,7 @@ document.addEventListener('DOMContentLoaded', () => {
function loadHistory() {
const raw = localStorage.getItem('mdl_history');
if(!raw) {
- dom.historyTableBody.innerHTML = '
| Kein Verlauf vorhanden |
';
+ dom.historyTableBody.innerHTML = '| No history available |
';
return;
}
@@ -258,9 +258,9 @@ document.addEventListener('DOMContentLoaded', () => {
tr.innerHTML = `
${time} |
${item.platform} |
- ${item.title || 'Unbekannt'} |
+ ${item.title || 'Unknown'} |
-
+
|
@@ -276,25 +276,25 @@ document.addEventListener('DOMContentLoaded', () => {
function saveHistory(resultUrl) {
const pf = dom.platformInput.value;
- const sourceUrl = dom.urlInput.value; // Hole die Original-URL aus dem Input
+ const sourceUrl = dom.urlInput.value; // Capture source URL
const entry = {
- url: resultUrl, // Der fertige S3 Download Link
- source: sourceUrl, // Der ursprüngliche YouTube/etc Link
+ url: resultUrl,
+ source: sourceUrl,
platform: pf,
- title: pf + " Download", // (Backend sendet Titel aktuell nicht im finalen Status, daher generisch)
+ title: pf + " Download",
ts: Date.now()
};
let data = JSON.parse(localStorage.getItem('mdl_history') || '[]');
data.unshift(entry);
- if(data.length > 20) data.pop(); // Max 20 Einträge
+ if(data.length > 20) data.pop(); // Max 20 entries
localStorage.setItem('mdl_history', JSON.stringify(data));
loadHistory();
}
function clearHistory() {
- if(confirm("Verlauf wirklich löschen?")) {
+ if(confirm("Really clear history?")) {
localStorage.removeItem('mdl_history');
loadHistory();
}
diff --git a/templates/index.html b/templates/index.html
index 42421fd..a48ed17 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,4 +1,4 @@
-
+
@@ -25,7 +25,7 @@
unknownMedien.dl
-