From cbe055e553f9dd1c0c51463aea908165c42d39c6 Mon Sep 17 00:00:00 2001 From: MatrixHasYou Date: Fri, 26 Jun 2026 21:38:45 +0400 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=BB=D0=B8=D0=BC=D0=B8=D1=82=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?PDF=20=D1=83=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B5=D0=BD=20=D0=B4?= =?UTF-8?q?=D0=BE=20195=20=D0=9C=D0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consolidate_to_mega_pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consolidate_to_mega_pdf.py b/consolidate_to_mega_pdf.py index 68bfed6..281ad03 100755 --- a/consolidate_to_mega_pdf.py +++ b/consolidate_to_mega_pdf.py @@ -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)")