feat: 원본 RSS 소스 이미지를 대표 이미지로 우선 사용

- RSS 수집 시 media:thumbnail, media:content, enclosure, <img> 태그에서 이미지 추출
- source_image를 topic → article → publisher로 전달
- 발행 시 우선순위: 원본 소스 이미지 → Pexels → Unsplash

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
JOUNGWOOK KWON
2026-03-30 12:22:48 +09:00
parent 02484679e2
commit 9280be7e52
3 changed files with 45 additions and 2 deletions
+1
View File
@@ -243,6 +243,7 @@ def _call_openclaw(topic_data: dict, output_path: Path, direction: str = ''):
article['source'] = topic_data.get('source', '')
article['source_url'] = topic_data.get('source_url') or topic_data.get('source') or ''
article['published_at'] = topic_data.get('published_at', '')
article['source_image'] = topic_data.get('source_image', '')
article['created_at'] = datetime.now().isoformat()
output_path.parent.mkdir(parents=True, exist_ok=True)