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)")