fix: 优化虫 机制,新增伊朗支援

This commit is contained in:
Daniel
2026-03-06 10:34:52 +08:00
parent 89145a6743
commit 9f2442f2e3
20 changed files with 411 additions and 62 deletions

View File

@@ -67,6 +67,8 @@ def _extract_and_merge(items: list, db_path: str) -> bool:
except Exception:
pass
extracted = extract_from_news(text, timestamp=ts)
if ts:
extracted["_event_time"] = ts
if extracted and merge(extracted, db_path=db_path):
merged_any = True
return merged_any