From 3eb83f449bd071c5bbde9de351cb563d05ba0a3a Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 27 Oct 2021 23:42:28 +0200 Subject: [PATCH] truncate ridiculous extensions --- copyparty/httpcli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index b45967af..d0ce8dd1 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2182,6 +2182,8 @@ class HttpCli(object): try: ext = "---" if is_dir else fn.rsplit(".", 1)[1] + if len(ext) > 16: + ext = ext[:16] except: ext = "%"