diff --git a/bin/u2c.py b/bin/u2c.py index 85298730..e92c1e4e 100755 --- a/bin/u2c.py +++ b/bin/u2c.py @@ -52,7 +52,7 @@ if PY2: sys.dont_write_bytecode = True bytes = str - files_decoder = lambda s: unicode(s, 'utf8') + files_decoder = lambda s: unicode(s, "utf8") else: from urllib.parse import quote_from_bytes as quote from urllib.parse import unquote_to_bytes as unquote diff --git a/copyparty/tcpsrv.py b/copyparty/tcpsrv.py index b0f9391e..53388c5e 100644 --- a/copyparty/tcpsrv.py +++ b/copyparty/tcpsrv.py @@ -583,7 +583,7 @@ class TcpSrv(object): if not ip: return "" - hip = "[%s]" % (ip,) if ":" in ip else ip + hip = "[%s]" % (ip,) if ":" in ip else ip if self.args.http_only: https = "" diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index f40d0a43..7b07376a 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -846,7 +846,7 @@ class ThumbSrv(object): tags, rawtags = ffprobe(abspath, int(vn.flags["convt"] / 2)) if "ac" not in tags: raise Exception("not audio") - + bits = tags[".bps"][1] if bits == 0.0: bits = tags[".bprs"][1]