fix: Rezeptverlauf-Bilder lokal speichern und Windows-Subprocess-Fix

- Bilder beim Extrahieren lokal cachen (data/images/{id}.ext) und über GET /api/history/{id}/image ausliefern; Löschen bei Verlaufseintrag-Entfernung
- history.db in ./data/ Volume verschoben, damit sie Container-Rebuilds überlebt
- yt-dlp Subprocess-Aufrufe auf Windows gefixt: run_in_executor statt asyncio.create_subprocess_exec (SelectorEventLoop-Kompatibilität)
- ./data:/app/data Docker-Volume für persistente Datenhaltung hinzugefügt
This commit is contained in:
Andre
2026-04-14 17:17:03 +02:00
parent 4de67f0192
commit c7582dafbb
13 changed files with 125 additions and 33 deletions
+3 -2
View File
@@ -280,10 +280,11 @@ function buildHistoryCard(entry) {
const header = document.createElement('div');
header.className = 'history-card-header';
if (recipe.image_url) {
const imageUrl = entry.image_url || recipe.image_url;
if (imageUrl) {
const img = document.createElement('img');
img.className = 'history-thumb';
img.src = recipe.image_url;
img.src = imageUrl;
img.alt = '';
img.onerror = () => img.remove();
header.appendChild(img);