Download videos from almost any website. Lightweight, self-hosted media downloader with a clean web UI.
HTML
Auto-save downloads and truncate filenames
averygan7ea8259d045a
diff --git a/app.py b/app.pyindex 1a3dfac..49f6d27 100644--- a/app.py+++ b/app.py@@ -61,7 +61,7 @@ def run_download(job_id, url, format_choice, format_id):title = job.get("title", "").strip()# Sanitize title for filenameif title:- safe_title = "".join(c for c in title if c not in r'\/:*?"<>|').strip()+ safe_title = "".join(c for c in title if c not in r'\/:*?"<>|').strip()[:20].strip()job["filename"] = f"{safe_title}{ext}" if safe_title else os.path.basename(chosen)else:job["filename"] = os.path.basename(chosen)diff --git a/templates/index.html b/templates/index.htmlindex 5952a2d..0bae3d3 100644--- a/templates/index.html+++ b/templates/index.html@@ -647,7 +647,7 @@c.status = 'done';c.filename = data.filename;renderCard(idx);- if (cardData.length === 1) saveCard(idx);+ saveCard(idx);} else if (data.status === 'error') {clearInterval(iv);c.status = 'error';