Fix: [2.0.10] 라이브/쇼츠 스킵 및 네트워크 타임아웃 설정
All checks were successful
news-summary-bot-cicd / build_push_deploy (push) Successful in 18m49s

- 라이브/쇼츠 영상 감지 시 에러 대신 스킵 처리
- yt-dlp socket_timeout, httpx timeout, Discord webhook timeout 30초로 설정

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
sm4640
2026-03-24 21:09:32 +09:00
parent 0bf38dd2f4
commit da9e557c64
3 changed files with 16 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ async def send_to_discord(title: str, video_url: str, summary: str) -> None:
payload = {"embeds": [embed]}
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=30.0) as client:
resp = await client.post(settings.discord_webhook_url, json=payload)
resp.raise_for_status()
@@ -131,5 +131,5 @@ async def send_error_to_discord(
payload = {"embeds": [embed]}
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=30.0) as client:
await client.post(settings.discord_webhook_url, json=payload)