v0.0.40: имя файла в live-блоке + сброс старых итогов при повторной обфускации
Deploy drhider / validate (push) Canceled after 0s

This commit is contained in:
“Naeel”
2026-08-19 13:36:12 +04:00
parent b46198d74a
commit 020f9d43c6
4 changed files with 48 additions and 5 deletions
+6 -4
View File
@@ -111,8 +111,13 @@ class TwoPassObfuscator:
# ── Проход 1: сбор сущностей ──
# Извлекаем Markdown из каждого файла
all_texts: Dict[str, str] = {}
total = len(files)
for i, (fname, content, ctype) in enumerate(files):
display_name = os.path.basename(fname) or fname
if progress_cb:
progress_cb("start", i, total, display_name)
for fname, content, ctype in files:
text = extractor.extract_text(fname, content, ctype)
all_texts[fname] = text
@@ -131,13 +136,10 @@ class TwoPassObfuscator:
# ── Проход 2: замена сущностей ──
results: List[Tuple[str, bytes]] = []
total = len(files)
for i, (in_fname, content, ctype) in enumerate(files):
fname = in_fname
display_name = os.path.basename(in_fname) or in_fname
if progress_cb:
progress_cb("start", i, total, display_name)
obf_content = content # По умолчанию — без изменений