From 2104fa05900fedc44009de7f4917d4fd917afc2a Mon Sep 17 00:00:00 2001 From: jouls0217 Date: Tue, 12 May 2026 17:01:56 +0800 Subject: [PATCH] Increase filename truncation limit from 20 to 100 chars --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 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 filename if 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)