mirror of
https://github.com/9001/copyparty.git
synced 2025-08-16 08:32:13 -06:00
black
This commit is contained in:
parent
153d240d0d
commit
7d3a5c1e97
|
@ -52,7 +52,7 @@ if PY2:
|
||||||
|
|
||||||
sys.dont_write_bytecode = True
|
sys.dont_write_bytecode = True
|
||||||
bytes = str
|
bytes = str
|
||||||
files_decoder = lambda s: unicode(s, 'utf8')
|
files_decoder = lambda s: unicode(s, "utf8")
|
||||||
else:
|
else:
|
||||||
from urllib.parse import quote_from_bytes as quote
|
from urllib.parse import quote_from_bytes as quote
|
||||||
from urllib.parse import unquote_to_bytes as unquote
|
from urllib.parse import unquote_to_bytes as unquote
|
||||||
|
|
|
@ -583,7 +583,7 @@ class TcpSrv(object):
|
||||||
if not ip:
|
if not ip:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
hip = "[%s]" % (ip,) if ":" in ip else ip
|
hip = "[%s]" % (ip,) if ":" in ip else ip
|
||||||
|
|
||||||
if self.args.http_only:
|
if self.args.http_only:
|
||||||
https = ""
|
https = ""
|
||||||
|
|
|
@ -846,7 +846,7 @@ class ThumbSrv(object):
|
||||||
tags, rawtags = ffprobe(abspath, int(vn.flags["convt"] / 2))
|
tags, rawtags = ffprobe(abspath, int(vn.flags["convt"] / 2))
|
||||||
if "ac" not in tags:
|
if "ac" not in tags:
|
||||||
raise Exception("not audio")
|
raise Exception("not audio")
|
||||||
|
|
||||||
bits = tags[".bps"][1]
|
bits = tags[".bps"][1]
|
||||||
if bits == 0.0:
|
if bits == 0.0:
|
||||||
bits = tags[".bprs"][1]
|
bits = tags[".bprs"][1]
|
||||||
|
|
Loading…
Reference in a new issue