This commit is contained in:
ed 2025-08-03 21:35:52 +00:00
parent 153d240d0d
commit 7d3a5c1e97
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 = ""

View file

@ -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]