Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions javsp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,12 @@ def check_step(result, msg='步骤错误'):
elapsed = time.strftime("%M:%S", time.gmtime(info['elapsed']))
speed = get_fmt_size(info['rate']) + '/s'
logger.info(f"已下载剧照{pic_url} {id}.png: {width}x{height}, {filesize} [{elapsed}, {speed}]")
else:
else:
check_step(False, f"下载剧照{id}: {pic_url}失败")
except:
check_step(False, f"下载剧照{id}: {pic_url}失败")
# 下载失败,不要在rasise exception,跳过,从而不打断整理
logger.error(f"下载剧照{id}: {pic_url}失败")
# check_step(False, f"下载剧照{id}: {pic_url}失败")
time.sleep(scrape_interval)
check_step(True)

Expand Down