Archived
1
0
Fork 0

Update maimaidx_api_data.py

This commit is contained in:
多羅狼 2023-09-22 23:39:38 +08:00 committed by GitHub
parent c8b7336890
commit 64b1ef8693
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ async def update_assets():
try:
cover_url = f"https://www.diving-fish.com/covers/{get_cover_len5_id(sid)}.png"
cover_path = f"{cover_dir}{get_cover_len5_id(sid)}.png"
download_cover = await download_to_cache(cover_url)
download_cover = await download_to_cache(cover_url, status_code=200)
if download_cover:
shutil.move(download_cover, cover_path)
except ValueError as e: