news60s 修复 API

This commit is contained in:
xtaodada 2023-06-03 20:25:31 +08:00
parent 98033c23e2
commit 996b5f9ac4
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -22,7 +22,7 @@ async def get_news60s() -> None:
global news60s_cache_time
if news60s_cache_time == date.today() and isfile(f"data{sep}news60s.png"):
return
resp = await client.get("https://api.emoao.com/api/60s")
resp = await client.get("https://api.emoao.com/api/60s", follow_redirects=True)
if resp.is_error:
raise ValueError(f"获取失败,错误码:{resp.status_code}")
news60s_cache_time = date.today()