Download videos from almost any website. Lightweight, self-hosted media downloader with a clean web UI.
HTML
Increase filename truncation limit from 20 to 100 chars
jouls02172104fa05900f
diff --git a/app.py b/app.pyindex 703f435..1d23eab 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()[:20].strip()+ safe_title = "".join(c for c in title if c not in r'\/:*?"<>|').strip()[:100].strip()job["filename"] = f"{safe_title}{ext}" if safe_title else os.path.basename(chosen)else:job["filename"] = os.path.basename(chosen)