初始提交:短剧库源码(含转码优化 ultrafast)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
zp = Path(r"C:\Users\Yvan\AppData\Local\Temp\短剧库-update.zip")
|
||||
with zipfile.ZipFile(zp) as zf:
|
||||
for info in zf.infolist():
|
||||
name = info.filename
|
||||
if not info.flag_bits & 0x800:
|
||||
try:
|
||||
name = name.encode("cp437").decode("utf-8")
|
||||
except Exception:
|
||||
pass
|
||||
if name.endswith("internal/app/playback_stream.go"):
|
||||
body = zf.read(info).decode("utf-8", "replace")
|
||||
print("ultrafast in zip:", "ultrafast" in body)
|
||||
print("veryfast in zip:", "veryfast" in body)
|
||||
start = body.find("func playbackEncodingArgs")
|
||||
print(body[start:start + 420])
|
||||
break
|
||||
Reference in New Issue
Block a user