modify scripts

This commit is contained in:
oscarz
2025-06-27 10:41:27 +08:00
parent ac7cff9454
commit 6bfae4bcea

View File

@ -331,6 +331,9 @@ def fetch_performers_detail():
if not avatar:
avatar = data.get('avatar')
all_movies.extend(data.get('movies', []))
else:
logging.warning(f"fetch_page error. url: {url}")
time.sleep(0.3)
elif status_code and status_code in [craw.http_code_404, craw.http_code_403, craw.http_code_redirect]:
actor_id = db_tools.update_actor_detail_404({'href': url, 'is_full_data': status_code})
@ -363,7 +366,6 @@ def fetch_performers_detail():
succ_rows += 1
else:
logging.warning(f'insert person: ({person}) {url} failed.')
time.sleep(0.5)
logging.info(f'total request: {len(performers_list)}, succ: {succ_rows}, last performer id: {last_performer_id}')
# 调试break