chore: лимит разделения PDF увеличен до 195 МБ
This commit is contained in:
parent
21197545b5
commit
cbe055e553
1 changed files with 2 additions and 2 deletions
|
|
@ -74,8 +74,8 @@ def consolidate():
|
|||
|
||||
for pdf_path in pdf_files:
|
||||
file_size = pdf_path.stat().st_size
|
||||
# Limit to 175 MB to guarantee fitting in NotebookLM 195MB
|
||||
if current_size + file_size > 175 * 1024 * 1024 and len(current_merger) > 0:
|
||||
# Limit to 195 MB to guarantee fitting in NotebookLM 195MB
|
||||
if current_size + file_size > 195 * 1024 * 1024 and len(current_merger) > 0:
|
||||
part_file = BASE_DIR / f"ALL_EMAILS_CONSOLIDATED_part{part_num}.pdf"
|
||||
current_merger.save(part_file, garbage=3, deflate=True)
|
||||
log.info(f"Saved part {part_num}: {part_file} ({part_file.stat().st_size / (1024*1024):.2f} MB)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue