v0.0.40: имя файла в live-блоке + сброс старых итогов при повторной обфускации
Deploy drhider / validate (push) Canceled after 0s
Deploy drhider / validate (push) Canceled after 0s
This commit is contained in:
@@ -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 # По умолчанию — без изменений
|
||||
|
||||
|
||||
Reference in New Issue
Block a user