20 lines
727 B
Python
20 lines
727 B
Python
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
|