MCPcopy Create free account
hub / github.com/NatsUIJM/autoContents / has_toc_in_range

Function has_toc_in_range

mainprogress/pdf_metadata_extractor.py:293–298  ·  view source on GitHub ↗

检查指定范围内是否有被投票为目录的页

(votes_dict, start_p, end_p)

Source from the content-addressed store, hash-verified

291 return False
292
293 # 动态扫描与拓展逻辑
294 current_limit = min(20, total_pages)
295 last_scanned = 0
296 retry_count = 0
297 max_retries = 5
298 toc_found = False
299
300 info_msg = f"正在分析目录范围:第 1 到 {current_limit} 页 (滑动窗口)"
301 print(f"[INFO] {info_msg}")

Callers 1

extract_toc_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected