mirror of
https://github.com/9001/copyparty.git
synced 2026-10-05 10:31:07 +01:00
v1.20.16
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# coding: utf-8
|
||||
|
||||
VERSION = (1, 20, 15)
|
||||
VERSION = (1, 20, 16)
|
||||
CODENAME = "sftp is fine too"
|
||||
BUILD_DT = (2026, 5, 26)
|
||||
|
||||
|
||||
+6
-5
@@ -53,22 +53,23 @@ def have_ff(name: str) -> bytes:
|
||||
|
||||
ebin = os.environ.get("PRTY_%s_BIN" % (uname,))
|
||||
try:
|
||||
bcmd = (ebin or name).encode("utf-8")
|
||||
scmd = (ebin or name).decode("utf-8")
|
||||
except:
|
||||
bcmd: bytes = ebin or name
|
||||
scmd: str = ebin or name
|
||||
|
||||
if ANYWIN and not ebin:
|
||||
bcmd += b".exe"
|
||||
scmd += ".exe"
|
||||
|
||||
if PY2:
|
||||
print("# checking {}".format(bcmd))
|
||||
print("# checking %s" % (scmd,))
|
||||
bcmd = scmd.encode("utf-8")
|
||||
try:
|
||||
sp.Popen([bcmd, b"-version"], stdout=sp.PIPE, stderr=sp.PIPE).communicate()
|
||||
return bcmd
|
||||
except:
|
||||
return b""
|
||||
else:
|
||||
return shutil.which(bcmd) or b""
|
||||
return (shutil.which(scmd) or "").encode("utf-8")
|
||||
|
||||
|
||||
HAVE_FFMPEG = have_ff("ffmpeg")
|
||||
|
||||
Reference in New Issue
Block a user