Fix 7z extraction of file ending/starting with whitespace

This commit is contained in:
Delgan
2026-01-22 00:17:47 +01:00
parent 97c888e969
commit 16e802d232

View File

@@ -44,7 +44,7 @@ def process_file_7z(
for line in lines:
line = line.lstrip()
if line.startswith("Path = "):
current_file = line.split(" = ", 1)[1].strip()
current_file = line.split(" = ", 1)[1]
current_size = 0
elif line.startswith("Size = "):
try: