From d3fe19c5aaf6146462994bc2c9fcb54d096430b6 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 28 Nov 2022 20:25:32 +0000 Subject: [PATCH] misc fixes --- copyparty/httpcli.py | 2 +- copyparty/util.py | 4 +++- setup.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 8b61837a..182a9f50 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -3149,7 +3149,7 @@ class HttpCli(object): "url_suf": url_suf, "logues": logues, "readme": readme, - "title": html_escape(self.vpath, crlf=True), + "title": html_escape(self.vpath, crlf=True) or "⇆🎉", "srv_info": srv_infot, "dtheme": self.args.theme, "themes": self.args.themes, diff --git a/copyparty/util.py b/copyparty/util.py index eafd3e12..77e20778 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -415,7 +415,9 @@ class HLog(logging.Handler): else: c = 1 - if record.name == "pyftpdlib": + if record.name.startswith("PIL") and lv < logging.WARNING: + return + elif record.name == "pyftpdlib": m = self.ptn_ftp.match(msg) if m: ip = m.group(1) diff --git a/setup.py b/setup.py index f26aa5f8..55322890 100755 --- a/setup.py +++ b/setup.py @@ -130,7 +130,7 @@ args = { "ftps": ["pyftpdlib", "pyopenssl"], }, "entry_points": {"console_scripts": ["copyparty = copyparty.__main__:main"]}, - "scripts": ["bin/copyparty-fuse.py", "bin/up2k.py"], + "scripts": ["bin/partyfuse.py", "bin/up2k.py"], "cmdclass": {"clean2": clean2}, }