Archived
1
0
Fork 0

Update maimaidx_api_data.py

This commit is contained in:
多羅狼 2023-09-22 23:50:19 +08:00 committed by GitHub
parent 64b1ef8693
commit af7e204c7d
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, status_code=200)
download_cover = await download_to_cache(cover_url, status_code=200, attempt=1, logging_err_resp=False)
if download_cover:
shutil.move(download_cover, cover_path)
except ValueError as e: