Fix: update buzzheavier link detection logic and improve filename extraction from headers

This commit is contained in:
Vxrtrauter
2026-05-04 19:07:42 +02:00
parent d378ee8258
commit 64ca3c76a2
4 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ def detect_filename_from_headers(url: str, user_agent: str) -> Optional[str]:
if "filename=" in cd:
parts = cd.split("filename=")
if len(parts) > 1:
fname = parts[-1].strip().strip('"').strip("'")
fname = parts[1].split(";")[0].strip().strip('"').strip("'")
if fname:
return fname
except Exception as e: